mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-27 10:31: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 => {
|
(subtitle: any): MWCaption | null => {
|
||||||
const sub = subtitle;
|
const sub = subtitle;
|
||||||
sub.subtitles = subtitle.subtitles.filter((subFile: any) => {
|
sub.subtitles = subtitle.subtitles.filter((subFile: any) => {
|
||||||
const extension = subFile.file_path.substring(
|
const extension = subFile.file_path.slice(-3);
|
||||||
sub.file_path.length - 3
|
|
||||||
);
|
|
||||||
return [MWCaptionType.SRT, MWCaptionType.VTT].includes(extension);
|
return [MWCaptionType.SRT, MWCaptionType.VTT].includes(extension);
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user