From 9757df12ec355d2e2cc19b38104240a0fc1ed162 Mon Sep 17 00:00:00 2001 From: Kevga <9109613+Kevga@users.noreply.github.com> Date: Mon, 13 Mar 2023 21:37:55 +0100 Subject: [PATCH] Fix video not playing on DLC maps and bump version --- BeatSaberCinema/Screen/PlaybackController.cs | 6 +++++- BeatSaberCinema/manifest.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/BeatSaberCinema/Screen/PlaybackController.cs b/BeatSaberCinema/Screen/PlaybackController.cs index 71d8104..75a2a32 100644 --- a/BeatSaberCinema/Screen/PlaybackController.cs +++ b/BeatSaberCinema/Screen/PlaybackController.cs @@ -530,7 +530,7 @@ public void SetSelectedLevel(IPreviewBeatmapLevel? level, VideoConfig? config) VideoConfig = config; Log.Debug($"Selected Level: {level?.levelID ?? "null"}"); - if (VideoConfig == null || ( level != null && VideoLoader.IsDlcSong(level))) + if (VideoConfig == null) { VideoPlayer.FadeOut(); StopAllCoroutines(); @@ -539,6 +539,10 @@ public void SetSelectedLevel(IPreviewBeatmapLevel? level, VideoConfig? config) Log.Debug("Preparing video..."); PrepareVideo(VideoConfig); + if (level != null && VideoLoader.IsDlcSong(level)) + { + VideoPlayer.FadeOut(); + } } private async void ShowSongCover() diff --git a/BeatSaberCinema/manifest.json b/BeatSaberCinema/manifest.json index 271dc36..22556c5 100644 --- a/BeatSaberCinema/manifest.json +++ b/BeatSaberCinema/manifest.json @@ -5,7 +5,7 @@ "description": "Play videos in the background of your beatmaps", "author": "Dakari", "gameVersion": "1.28.0", - "version": "1.7.2", + "version": "1.7.3", "dependsOn": { "BSIPA": "^4.2.2", "BeatSaberMarkupLanguage": "^1.6.0",