From 0669af06cbb1300e205e9a3994de78e61ca0d975 Mon Sep 17 00:00:00 2001 From: Marcos Cordeiro Date: Thu, 9 Nov 2023 23:30:56 -0300 Subject: [PATCH] Fix downloading subs even when disabled --- Wasari.Crunchyroll/CrunchyrollDownloadService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Wasari.Crunchyroll/CrunchyrollDownloadService.cs b/Wasari.Crunchyroll/CrunchyrollDownloadService.cs index dfe8d4b..915b879 100644 --- a/Wasari.Crunchyroll/CrunchyrollDownloadService.cs +++ b/Wasari.Crunchyroll/CrunchyrollDownloadService.cs @@ -90,6 +90,7 @@ public override async Task DownloadEpisodes(string url, int .SelectAwait(i => i.FirstAsync()) .Select(o => new WasariEpisodeInput(o.Url, o.Locale, InputType.Subtitle))) .Cast() + .Where(i => DownloadOptions.Value.IncludeSubs || i.Type != InputType.Subtitle) .ToArrayAsync(); }, TimeSpan.FromMilliseconds(commonEpisodeData.DurationMs)); });