fix(superstream): fix subtitle error on SuperStream

This commit is contained in:
Jip Fr 2023-04-14 19:32:34 +02:00
parent 3decc9190c
commit d2ffa35f2c

View File

@ -229,9 +229,7 @@ registerProvider({
(subtitle: any): MWCaption | null => {
const sub = subtitle;
sub.subtitles = subtitle.subtitles.filter((subFile: any) => {
const extension = subFile.file_path.substring(
sub.file_path.length - 3
);
const extension = subFile.file_path.slice(-3);
return [MWCaptionType.SRT, MWCaptionType.VTT].includes(extension);
});
return {