diff --git a/CRD/Downloader/Crunchyroll/CrunchyrollManager.cs b/CRD/Downloader/Crunchyroll/CrunchyrollManager.cs index 981dd5a..37cc71f 100644 --- a/CRD/Downloader/Crunchyroll/CrunchyrollManager.cs +++ b/CRD/Downloader/Crunchyroll/CrunchyrollManager.cs @@ -1417,9 +1417,9 @@ public class CrunchyrollManager{ private static async Task DownloadSubtitles(CrDownloadOptions options, PlaybackData pbData, string audDub, string fileName, List files, string fileDir, CrunchyEpMeta data, bool needsDelay, DownloadedMedia videoDownloadMedia){ - if (pbData.Meta != null && pbData.Meta.Subtitles != null && pbData.Meta.Subtitles.Count > 0){ - List subsData = pbData.Meta.Subtitles.Values.ToList(); - List capsData = pbData.Meta.Captions?.Values.ToList() ?? new List(); + if (pbData.Meta != null && (pbData.Meta.Subtitles is{ Count: > 0 } || pbData.Meta.Captions is{ Count: > 0 })){ + List subsData = pbData.Meta.Subtitles?.Values.ToList() ?? []; + List capsData = pbData.Meta.Captions?.Values.ToList() ?? []; var subsDataMapped = subsData.Select(s => { var subLang = Languages.FixAndFindCrLc((s.Locale ?? Locale.DefaulT).GetEnumMemberValue()); return new{