Chg: Fallback to non drm streams if no cdm files are present

This commit is contained in:
Elwador 2024-05-25 00:50:51 +02:00
parent f0346fd4c8
commit 3d687d9c1f
1 changed files with 12 additions and 10 deletions

View File

@ -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<DownloadedMedia>(),
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<DownloadedMedia>(),
// 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