Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nb557 committed Dec 22, 2024
1 parent 2598e29 commit 59328b0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions online_mod.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//21.12.2024 - Fix
//22.12.2024 - Fix

(function () {
'use strict';
Expand Down Expand Up @@ -3376,7 +3376,7 @@
}).filter(function (name) {
return name && name !== 'delete';
});
var file = fixUrl(prefer_dash && episode.dash || episode.hls || '');
var file = fixUrl(prefer_dash && (episode.dasha || episode.dash) || episode.hls || '');
filtred.push({
title: episode.title,
quality: '360p ~ ' + (prefer_dash ? '1080p' : '720p'),
Expand Down Expand Up @@ -3423,7 +3423,7 @@
}).filter(function (name) {
return name && name !== 'delete';
});
var file = fixUrl(prefer_dash && extract.source.dash || extract.source.hls || '');
var file = fixUrl(prefer_dash && (extract.source.dasha || extract.source.dash) || extract.source.hls || '');
filtred.push({
title: extract.title || select_title,
quality: max_quality ? max_quality + 'p' : '360p ~ ' + (prefer_dash ? '1080p' : '720p'),
Expand Down Expand Up @@ -6433,6 +6433,12 @@
if (b.label < a.label) return -1;
return 0;
});

if (!av1_support) {
items = items.filter(function (item) {
return !(item.quality > 1080);
});
}
}

if (items && items.length) {
Expand Down Expand Up @@ -7406,7 +7412,7 @@
url = Lampa.Utils.addUrlComponent(url, 'limit=20');
url = Lampa.Utils.addUrlComponent(url, 'search=' + encodeURIComponent(select_title));
network.clear();
network.timeout(1000 * 15);
network.timeout(1000 * 30);
network.silent(component.proxyLink(url, prox), function (json) {
display(json && json.list);
}, function (a, c) {
Expand Down Expand Up @@ -11435,7 +11441,7 @@
};
}

var mod_version = '21.12.2024';
var mod_version = '22.12.2024';
console.log('App', 'start address:', window.location.href);
var isMSX = !!(window.TVXHost || window.TVXManager);
var isTizen = navigator.userAgent.toLowerCase().indexOf('tizen') !== -1;
Expand Down

0 comments on commit 59328b0

Please sign in to comment.