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:
parent
3decc9190c
commit
d2ffa35f2c
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue