From 7335ed22b0adf05c92a8c47aeab36943139e164f Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Fri, 26 Aug 2022 20:10:06 -0400 Subject: [PATCH] Add BIF image support --- .github/workflows/master-release.yml | 2 +- .github/workflows/unstable-release.yml | 2 +- source/VideoPlayer.brs | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master-release.yml b/.github/workflows/master-release.yml index c405b7d3..b7387b6f 100644 --- a/.github/workflows/master-release.yml +++ b/.github/workflows/master-release.yml @@ -40,4 +40,4 @@ jobs: with: name: jellyfin_v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.BUILD }}.zip path: ${{ github.workspace }}/jellyfin_v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.BUILD }}.zip - if-no-files-found: error \ No newline at end of file + if-no-files-found: error diff --git a/.github/workflows/unstable-release.yml b/.github/workflows/unstable-release.yml index a426cf67..979965c9 100644 --- a/.github/workflows/unstable-release.yml +++ b/.github/workflows/unstable-release.yml @@ -39,4 +39,4 @@ jobs: with: name: jellyfin_v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.BUILD }}.zip path: ${{ github.workspace }}/jellyfin_v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.BUILD }}.zip - if-no-files-found: error \ No newline at end of file + if-no-files-found: error diff --git a/source/VideoPlayer.brs b/source/VideoPlayer.brs index 4415353a..bae6b237 100644 --- a/source/VideoPlayer.brs +++ b/source/VideoPlayer.brs @@ -274,6 +274,10 @@ sub AddVideoContent(video, mediaSourceId, audio_stream_idx = 1, subtitle_idx = - ' is enabled/will be enabled, indexed on the provided list of subtitles video.SelectedSubtitle = setupSubtitle(video, video.Subtitles, subtitle_idx) + video.content.SDBifUrl = api_API().jellyscrub.get(video.id) + video.content.HDBifUrl = api_API().jellyscrub.get(video.id) + video.content.FHDBifUrl = api_API().jellyscrub.get(video.id) + if not fully_external video.content = authorize_request(video.content) end if