From 3d687d9c1fe34976e8265d0f84ec0469f4688e6c Mon Sep 17 00:00:00 2001 From: Elwador <75888166+Elwador@users.noreply.github.com> Date: Sat, 25 May 2024 00:50:51 +0200 Subject: [PATCH] Chg: Fallback to non drm streams if no cdm files are present --- CRD/Downloader/Crunchyroll.cs | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/CRD/Downloader/Crunchyroll.cs b/CRD/Downloader/Crunchyroll.cs index 6522e73..0511b61 100644 --- a/CRD/Downloader/Crunchyroll.cs +++ b/CRD/Downloader/Crunchyroll.cs @@ -511,15 +511,15 @@ public class Crunchyroll{ }; } - if (!options.UseNonDrmStreams && !_widevine.canDecrypt){ - Console.Error.WriteLine("Only searching for drm streams but widevine can't decrypt"); - MainWindow.Instance.ShowError("Settings set to not search for DRM streams - but can't find CDM files in widevine folder "); - return new DownloadResponse{ - Data = new List(), - Error = true, - FileName = "./unknown" - }; - } + // if (!options.UseNonDrmStreams && !_widevine.canDecrypt){ + // Console.Error.WriteLine("Only searching for drm streams but widevine can't decrypt"); + // MainWindow.Instance.ShowError("Settings set to not search for DRM streams - but can't find CDM files in widevine folder "); + // return new DownloadResponse{ + // Data = new List(), + // Error = true, + // FileName = "./unknown" + // }; + // } string mediaName = $"{data.SeasonTitle} - {data.EpisodeNumber} - {data.EpisodeTitle}"; string fileName = ""; @@ -619,7 +619,9 @@ public class Crunchyroll{ #region NonDrmRequest - await FetchNoDrmPlaybackData(mediaGuid, pbData); + if (options.UseNonDrmStreams || !_widevine.canDecrypt){ + await FetchNoDrmPlaybackData(mediaGuid, pbData); + } #endregion