Skip to content

Commit

Permalink
updated custom services subs message
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Aug 19, 2024
1 parent c622fe6 commit d1d4cbd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
10 changes: 5 additions & 5 deletions dist/vot-min.user.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions dist/vot.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7731,10 +7731,7 @@ class VideoHandler {
this.subtitlesList = await subtitles_getSubtitles(this.votClient, this.videoData);
} catch (err) {
// ignore error on sites with m3u8
if (
err?.unlocalizedMessage ===
"Unsupported video URL for getting subtitles"
) {
if (err?.unlocalizedMessage === "VOTSubtitlesNotSupportedUrl") {
this.subtitlesList = [];
await this.updateSubtitlesLangSelect();
return;
Expand Down
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1743,10 +1743,7 @@ class VideoHandler {
this.subtitlesList = await getSubtitles(this.votClient, this.videoData);
} catch (err) {
// ignore error on sites with m3u8
if (
err?.unlocalizedMessage ===
"Unsupported video URL for getting subtitles"
) {
if (err?.unlocalizedMessage === "VOTSubtitlesNotSupportedUrl") {
this.subtitlesList = [];
await this.updateSubtitlesLangSelect();
return;
Expand Down

0 comments on commit d1d4cbd

Please sign in to comment.