Chg: Fallback to non drm streams if no cdm files are present
This commit is contained in:
parent
f0346fd4c8
commit
3d687d9c1f
|
@ -511,15 +511,15 @@ public class Crunchyroll{
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.UseNonDrmStreams && !_widevine.canDecrypt){
|
// if (!options.UseNonDrmStreams && !_widevine.canDecrypt){
|
||||||
Console.Error.WriteLine("Only searching for drm streams but widevine can't decrypt");
|
// 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 ");
|
// MainWindow.Instance.ShowError("Settings set to not search for DRM streams - but can't find CDM files in widevine folder ");
|
||||||
return new DownloadResponse{
|
// return new DownloadResponse{
|
||||||
Data = new List<DownloadedMedia>(),
|
// Data = new List<DownloadedMedia>(),
|
||||||
Error = true,
|
// Error = true,
|
||||||
FileName = "./unknown"
|
// FileName = "./unknown"
|
||||||
};
|
// };
|
||||||
}
|
// }
|
||||||
|
|
||||||
string mediaName = $"{data.SeasonTitle} - {data.EpisodeNumber} - {data.EpisodeTitle}";
|
string mediaName = $"{data.SeasonTitle} - {data.EpisodeNumber} - {data.EpisodeTitle}";
|
||||||
string fileName = "";
|
string fileName = "";
|
||||||
|
@ -619,7 +619,9 @@ public class Crunchyroll{
|
||||||
|
|
||||||
#region NonDrmRequest
|
#region NonDrmRequest
|
||||||
|
|
||||||
await FetchNoDrmPlaybackData(mediaGuid, pbData);
|
if (options.UseNonDrmStreams || !_widevine.canDecrypt){
|
||||||
|
await FetchNoDrmPlaybackData(mediaGuid, pbData);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue