Skip to content

Commit

Permalink
Fix crash in player when video ID is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Dec 27, 2024
1 parent 5cb33db commit be93762
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Crash in player when video ID is invalid

## [0.35.2] - 2024-12-27

### Fixed
Expand Down
6 changes: 5 additions & 1 deletion playlet-lib/src/components/VideoPlayer/VideoPlayer.bs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,11 @@ function OnVideoContentTaskErrorDialogResponse(event as object)
Lounge.SendOnStateChange()
end function

function MarkVideoWatched(videoId as string)
function MarkVideoWatched(videoId as dynamic) as void
if StringUtils.IsNullOrEmpty(videoId)
return
end if

if m.top.invidious.authToken <> invalid
AsyncTask.Start(Tasks.MarkVideoWatchedTask, {
videoId: videoId
Expand Down

0 comments on commit be93762

Please sign in to comment.