1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

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 {