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.
- Loading branch information
1 parent
85eed86
commit 7bd3a05
Showing
6 changed files
with
48 additions
and
3 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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
# 1.6.x | ||
|
||
- Добавлена поддержка Poketube (#726) | ||
- Исправлена работа Peertube | ||
|
||
# 1.6.0 | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/node_modules/vot.js/dist/config/sites.js b/node_modules/vot.js/dist/config/sites.js | ||
index 3e05f90..3f42407 100644 | ||
--- a/node_modules/vot.js/dist/config/sites.js | ||
+++ b/node_modules/vot.js/dist/config/sites.js | ||
@@ -37,6 +37,7 @@ export default [ | ||
host: VideoService.poketube, | ||
url: "https://youtu.be/", | ||
match: sitesPoketube, | ||
+ selector: ".video-player-container", | ||
}, | ||
{ | ||
additionalData: "mobile", | ||
diff --git a/node_modules/vot.js/dist/utils/videoData.js b/node_modules/vot.js/dist/utils/videoData.js | ||
index cade01f..5e0a547 100644 | ||
--- a/node_modules/vot.js/dist/utils/videoData.js | ||
+++ b/node_modules/vot.js/dist/utils/videoData.js | ||
@@ -261,7 +261,7 @@ export async function getVideoData(service, video) { | ||
throw new VideoDataError(`Entered unsupported link: "${service.host}"`); | ||
} | ||
if (service.host === VideoService.peertube) { | ||
- service.url = new URL(url).origin; | ||
+ service.url = window.location.origin; | ||
} | ||
if (service.rawResult) { | ||
return { |
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 |
---|---|---|
|
@@ -117,6 +117,7 @@ | |
&-label { | ||
margin-left: 8px; | ||
white-space: nowrap; | ||
color: inherit; | ||
} | ||
} | ||
|
||
|