mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 10:11:48 +01:00
fix(superstream): fix subtitle error on SuperStream
This commit is contained in:
parent
3decc9190c
commit
d2ffa35f2c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user