Changes some things
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good

Removes any forced subtitles when changing the default stream
Makes the title filter accept a list of filters, and allows using it for sorting rather than filtering
This commit is contained in:
2024-05-06 01:32:19 +02:00
parent dae93b9f81
commit ac25ca1986
4 changed files with 36 additions and 12 deletions

View File

@ -95,7 +95,7 @@ public class WebAnimeConverter extends AbstractConverter {
VideoStream videoStream = getNthSteam(probeResult.getVideoStreams(), 0);
//Get the first subtitle stream in accordance with chosen languages and signs and songs prevention
StreamSorter<SubtitleStream> subtitleSorter = new SubtitleTitleSorter(this.subtitleNameFilter)
StreamSorter<SubtitleStream> subtitleSorter = new SubtitleTitleSorter(List.of(this.subtitleNameFilter))
.append(new MinimalSubtitleSorter(this.subtitlePreference))
.append(new SubtitleLanguageSorter(this.subtitleLanguages));
SubtitleStream subtitleStream = getNthSteam(subtitleSorter.chainSort(probeResult.getSubtitleStreams()),