Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser authored Jan 14, 2024
1 parent f19badf commit 63fb2a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/config/sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const sites = () => {
selector: ".player",
},
{
host: "okru",
host: "ok.ru",
url: "https://ok.ru/",
match: /^ok.ru$/,
selector: ".html5-vpl_vid",
Expand Down
3 changes: 1 addition & 2 deletions src/headers.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@
"*://geo.dailymotion.com/*",
"*://*.ok.ru/*",
"*://trovo.live/*",
"*://disk.yandex.ru/i/*",
"*://coursehunter.net/*"
"*://disk.yandex.ru/i/*"
],
"require": [
"https://cdn.jsdelivr.net/npm/protobufjs/dist/light/protobuf.min.js",
Expand Down
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,7 @@ class VideoHandler {
}
} else if (
window.location.hostname.includes("rutube") ||
window.location.hostname.includes("ok.ru") ||
window.location.hostname.includes("my.mail.ru")
) {
videoData.detectedLanguage = "ru";
Expand All @@ -1500,8 +1501,6 @@ class VideoHandler {
videoData.duration = courseraData.duration || videoData.duration; // courseraData.duration sometimes it can be equal to NaN
videoData.detectedLanguage = courseraData.detectedLanguage;
videoData.translationHelp = courseraData.translationHelp;
} else if (window.location.hostname.includes("ok.ru")) {
videoData.detectedLanguage = "ru";
} else if (window.location.hostname.includes("udemy.com")) {
const udemyData = await udemyUtils.getVideoData(
this.data.udemyData,
Expand All @@ -1527,7 +1526,7 @@ class VideoHandler {
}

videoValidator() {
if (this.site.host === "youtube" || this.site.host === "okru") {
if (this.site.host === "youtube" || this.site.host === "ok.ru") {
debug.log("VideoValidator videoData: ", this.videoData);
if (
this.data.dontTranslateYourLang === 1 &&
Expand Down

0 comments on commit 63fb2a4

Please sign in to comment.