forked from sodapng/voice-over-translation
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support of inbox and bk paths for mail.ru video
- Loading branch information
1 parent
25056bf
commit 790205f
Showing
11 changed files
with
255 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/vot.js/dist/utils/helper.js b/node_modules/vot.js/dist/utils/helper.js | ||
index b61b6bc..f8eded2 100644 | ||
--- a/node_modules/vot.js/dist/utils/helper.js | ||
+++ b/node_modules/vot.js/dist/utils/helper.js | ||
@@ -18,8 +18,7 @@ export class MailRuHelper { | ||
API_ORIGIN = "https://my.mail.ru/"; | ||
async getExtraVideoId(pathname) { | ||
try { | ||
- const res = await fetchWithTimeout(`${this.API_ORIGIN}${pathname}`); | ||
- const content = await res.text(); | ||
+ const content = document.querySelector(".sp-video__page-config")?.innerText; | ||
return /"itemId":\s?"([^"]+)"/.exec(content)?.[1]; | ||
} | ||
catch (err) { |
Oops, something went wrong.