Skip to content

Commit

Permalink
Fix rezka2 default quality
Browse files Browse the repository at this point in the history
  • Loading branch information
nb557 committed Jan 12, 2024
1 parent e935af8 commit 15fc69d
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions online_mod.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//12.01.2024 - Fix kinobase
//13.01.2024 - Fix rezka2 default quality

(function () {
'use strict';
Expand Down Expand Up @@ -1820,7 +1820,7 @@
quality[item.label] = item.file;
});
var preferably = Lampa.Storage.get('video_quality_default', '1080') + 'p';
if (quality[preferably]) file = quality[preferably];
if (quality[preferably]) file = quality[preferably];else if (preferably === '1440p' && quality['2K']) file = quality['2K'];else if (preferably === '2160p' && quality['4K']) file = quality['4K'];
}

if (file) {
Expand Down Expand Up @@ -1876,7 +1876,19 @@

try {
var items = component.parsePlaylist(str).map(function (item) {
var int_quality = NaN;
var quality = item.label.match(/(\d\d\d+)p/);

if (quality) {
int_quality = parseInt(quality[1]);
} else {
quality = item.label.match(/(\d+)K/);

if (quality) {
int_quality = parseInt(quality[1]) * 1000;
}
}

var links;

if (prefer_mp4) {
Expand All @@ -1900,7 +1912,7 @@

return {
label: item.label,
quality: quality ? parseInt(quality[1]) : NaN,
quality: int_quality,
file: link
};
});
Expand Down Expand Up @@ -10515,7 +10527,7 @@
var token = 'd317441359e505c343c2063edc97e7';
var embed = prox + 'https://api.apbugall.org/?token=' + token;
var decrypt = Utils.decodeSecret([16, 86, 76, 90, 80, 77, 93, 95, 90, 16, 67, 77, 70, 31, 25, 65, 66, 88, 20, 16, 77, 91, 88, 92, 90, 25, 79, 24, 70, 88, 70, 19, 92, 76, 68, 70, 89, 83, 77, 20, 14, 25, 79, 77, 15, 24, 70, 88, 70, 19, 81, 91, 67, 64, 24, 13, 25, 65, 65, 85, 26, 93, 85, 76, 83, 81, 28, 28, 103, 28, 88, 64, 76, 64, 74, 11, 9, 101, 27, 108, 27, 99, 110, 101, 27, 110, 18, 29, 108, 27, 23, 25, 2, 20, 90, 95, 20, 24, 92, 87, 67, 77, 29, 72, 25, 66, 81, 70, 24, 89, 93, 107, 64, 72, 20, 13, 20, 75, 68, 75, 26, 94, 88, 64, 83, 92, 16, 31, 79, 85, 65, 25, 93, 84, 107, 75, 65, 25, 9, 19, 30, 28, 107, 106, 31, 109, 19, 29, 20, 2, 27, 25, 15, 24, 85, 65, 64, 65, 88, 87, 68, 26, 81, 84, 102, 71, 66, 25, 9, 16, 93, 92, 111, 74, 69, 19, 6, 20, 89, 80, 103, 67, 72, 111, 2, 100, 20, 10, 20, 31, 23, 2, 20, 86, 65, 64, 66, 85, 91, 68, 23, 68, 92, 74, 64, 84, 85, 76, 81, 25, 9, 19, 30, 18, 68, 91, 83, 85, 87, 9, 20, 25, 31, 16, 81, 86, 83, 86, 80, 86, 108, 102, 121, 119, 87, 93, 73, 91, 93, 92, 90, 68, 28, 76, 95, 82, 81, 93, 16, 20, 27, 20, 31, 22, 80, 80, 108, 74, 69, 13, 19, 24, 27, 25, 81, 93, 90, 91, 84, 81, 109, 98, 112, 119, 92, 84, 68, 95, 90, 93, 94, 77, 28, 86, 65, 64, 66, 85, 91, 68, 23, 93, 87, 102, 71, 65, 29, 3, 16, 79, 85, 65, 25, 70, 85, 82, 93, 66, 92, 70, 19, 4, 20, 85, 76, 76, 66, 88, 87, 71, 23, 93, 84, 107, 75, 65, 25, 11, 19, 117, 85, 93, 68, 89, 30, 108, 64, 90, 85, 71, 30, 85, 92, 84, 108, 70, 95, 122, 91, 93, 68, 87, 94, 92, 90, 71, 17, 65, 66, 88, 20, 16, 30, 65, 90, 93, 107, 65, 9, 31, 16, 18, 20, 86, 87, 87, 95, 80, 93, 101, 107, 125, 112, 86, 89, 64, 91, 86, 85, 87, 64, 27, 92, 76, 68, 70, 89, 83, 77, 26, 90, 93, 107, 67, 69, 17, 25, 25, 14, 19, 76, 70, 92, 15, 24, 85, 65, 64, 65, 88, 87, 68, 26, 92, 95, 84, 85, 90, 87, 20, 13, 20, 80, 95, 74, 64, 104, 8, 105, 16, 31, 24, 23, 22, 19, 8, 25, 81, 72, 64, 74, 81, 90, 64, 29, 93, 91, 93, 85, 81, 94, 11, 20, 14, 25, 28, 23, 68, 89, 66, 88, 89, 12, 107, 81, 86, 81, 74, 85, 75, 9, 20, 25, 31, 16, 81, 86, 83, 86, 80, 86, 108, 102, 121, 119, 87, 93, 73, 91, 93, 92, 90, 68, 28, 74, 85, 95, 81, 65, 92, 70, 25, 20, 19, 16, 30, 27, 20, 16, 20, 27, 20, 93, 72, 77, 70, 82, 90, 64, 30, 80, 87, 93, 88, 93, 93, 2, 20, 85, 76, 76, 66, 88, 87, 71, 23, 92, 85, 85, 92, 85, 75, 71, 19, 4, 20, 124, 85, 85, 64, 88, 26, 99, 85, 85, 68, 82, 87, 66, 84, 26, 90, 74, 28, 23, 85, 86, 84, 75, 91, 90, 93, 19, 25, 20, 7, 16, 66, 20, 20, 118, 70, 89, 83, 81, 94, 30, 14, 19, 81, 91, 67, 64, 99, 1, 100, 24, 19, 30, 102, 85, 82, 93, 66, 92, 70, 20, 3, 20, 66, 81, 94, 85, 75, 81, 65, 25, 73, 16, 14, 24, 75, 68, 15, 19, 68, 20, 66, 81, 76, 69, 75, 90, 19, 92, 76, 68, 70, 89, 83, 77, 15, 19, 68, 29, 30, 87, 89, 92, 85, 28, 72, 68, 24]);
var decrypt2 = Utils.decodeSecret([16, 86, 76, 90, 80, 77, 93, 95, 90, 16, 67, 90, 70, 90, 73, 64, 28, 20, 76, 95, 82, 81, 93, 21, 20, 89, 80, 17, 75, 25, 66, 82, 75, 20, 71, 93, 86, 84, 86, 67, 19, 4, 20, 75, 73, 20, 16, 29, 20, 14, 25, 79, 77, 15, 24, 70, 88, 70, 19, 97, 121, 124, 124, 76, 68, 73, 102, 86, 72, 65, 85, 71, 76, 16, 4, 20, 85, 76, 90, 83, 64, 81, 95, 87, 20, 107, 116, 120, 120, 64, 76, 64, 107, 81, 66, 76, 81, 67, 64, 16, 25, 66, 20, 71, 81, 93, 67, 26, 87, 64, 92, 90, 19, 4, 20, 86, 65, 86, 83, 77, 93, 92, 87, 28, 25, 79, 69, 11, 25, 64, 91, 80, 71, 30, 71, 93, 68, 107, 81, 66, 76, 81, 67, 64, 112, 85, 88, 80, 86, 75, 20, 13, 20, 94, 69, 87, 87, 71, 80, 91, 94, 28, 17, 75, 68, 15, 19, 77, 92, 89, 71, 22, 67, 92, 90, 87, 25, 9, 16, 82, 77, 94, 90, 64, 90, 86, 90, 24, 29, 67, 77, 2, 20, 78, 2, 20, 70, 85, 74, 16, 97, 112, 92, 84, 85, 89, 90, 106, 85, 72, 65, 86, 74, 64, 16, 9, 24, 104, 116, 120, 123, 77, 64, 64, 102, 93, 65, 76, 81, 64, 77, 15, 16, 64, 74, 73, 25, 79, 19, 92, 66, 81, 88, 16, 67, 90, 70, 90, 73, 64, 25, 15, 24, 77, 25, 87, 82, 77, 87, 88, 20, 16, 85, 16, 79, 78, 25, 70, 85, 64, 77, 66, 87, 20, 72, 25, 69, 69, 81, 74, 73, 3, 20, 17, 6, 83, 81, 66, 86, 95, 91, 88, 92, 90, 95, 82, 91, 84, 95, 77, 91, 14, 27, 20, 27, 20, 93, 94, 90, 91, 87, 92, 97, 98, 125, 123, 95, 84, 68, 92, 87, 81, 94, 64, 16, 74, 65, 66, 82, 74, 80, 81, 71, 92, 81, 74, 66, 82, 74, 80, 87, 85, 75, 86, 79, 80, 26, 21, 20, 64, 91, 75, 68, 93, 85, 71, 88, 14, 16, 22, 90, 81, 75, 85, 93, 91, 91, 92, 90, 87, 73, 80, 80, 90, 86, 64, 2, 9, 26, 16, 18, 20, 86, 87, 87, 95, 80, 93, 101, 107, 125, 112, 86, 89, 64, 91, 86, 85, 87, 64, 27, 77, 91, 91, 81, 86, 25, 25, 31, 19, 27, 18, 94, 81, 79, 82, 88, 70, 82, 87, 86, 95, 88, 86, 95, 64, 93, 87, 80, 91, 68, 78, 5, 18, 25, 31, 19, 92, 90, 83, 91, 92, 85, 108, 102, 122, 122, 91, 93, 68, 87, 94, 92, 90, 71, 17, 93, 84, 29, 24, 27, 25, 22, 21, 86, 88, 84, 86, 89, 66, 88, 90, 81, 86, 88, 94, 91, 65, 89, 93, 93, 92, 77, 82, 71, 9, 26, 16, 18, 20, 86, 87, 87, 95, 80, 93, 101, 107, 125, 112, 86, 89, 64, 91, 86, 85, 87, 64, 27, 76, 65, 65, 29, 24, 77, 2, 20, 78, 16, 26, 83, 85, 84, 92, 17, 79, 78, 21]);
var decrypt2 = Utils.decodeSecret([16, 86, 76, 90, 80, 77, 93, 95, 90, 16, 67, 90, 70, 90, 73, 64, 28, 20, 76, 95, 82, 81, 93, 21, 20, 89, 80, 17, 75, 25, 66, 82, 75, 20, 71, 93, 86, 84, 86, 67, 19, 4, 20, 75, 73, 20, 16, 29, 20, 14, 25, 79, 77, 15, 24, 70, 88, 70, 19, 97, 121, 124, 124, 76, 68, 73, 102, 86, 72, 65, 85, 71, 76, 16, 4, 20, 85, 76, 90, 83, 64, 81, 95, 87, 20, 107, 116, 120, 120, 64, 76, 64, 107, 81, 66, 76, 81, 67, 64, 16, 25, 66, 20, 71, 81, 93, 67, 26, 87, 64, 92, 90, 19, 4, 20, 86, 65, 86, 83, 77, 93, 92, 87, 28, 25, 79, 69, 11, 25, 64, 91, 80, 71, 30, 71, 93, 68, 107, 81, 66, 76, 81, 67, 64, 112, 85, 88, 80, 86, 75, 20, 13, 20, 94, 69, 87, 87, 71, 80, 91, 94, 28, 17, 75, 68, 15, 19, 77, 92, 89, 71, 22, 67, 92, 90, 87, 25, 9, 16, 82, 77, 94, 90, 64, 90, 86, 90, 24, 29, 67, 77, 2, 20, 78, 2, 20, 70, 85, 74, 16, 97, 112, 92, 84, 85, 89, 90, 106, 85, 72, 65, 86, 74, 64, 16, 9, 24, 104, 116, 120, 123, 77, 64, 64, 102, 93, 65, 76, 81, 64, 77, 15, 16, 64, 74, 73, 25, 79, 19, 92, 66, 81, 88, 16, 67, 90, 70, 90, 73, 64, 25, 15, 24, 77, 25, 87, 82, 77, 87, 88, 20, 16, 85, 16, 79, 78, 25, 70, 85, 64, 77, 66, 87, 20, 72, 25, 69, 69, 81, 74, 73, 3, 20, 17, 6, 87, 88, 65, 72, 81, 90, 92, 70, 73, 71, 13, 22, 24, 27, 25, 81, 93, 90, 91, 84, 81, 109, 98, 112, 119, 92, 84, 68, 95, 90, 93, 94, 77, 28, 73, 65, 66, 81, 71, 92, 81, 74, 80, 82, 74, 66, 81, 71, 92, 87, 88, 71, 85, 79, 80, 25, 24, 24, 64, 86, 71, 71, 93, 85, 68, 85, 2, 16, 27, 86, 82, 75, 85, 94, 86, 87, 92, 87, 91, 74, 80, 80, 89, 91, 76, 2, 4, 22, 19, 18, 20, 85, 90, 91, 95, 93, 81, 102, 107, 125, 115, 91, 85, 64, 86, 90, 86, 87, 64, 24, 64, 87, 91, 92, 90, 26, 25, 31, 16, 22, 30, 94, 92, 67, 81, 88, 70, 81, 90, 90, 95, 85, 90, 92, 64, 93, 84, 93, 87, 68, 67, 9, 17, 25, 31, 16, 81, 86, 83, 86, 80, 86, 108, 102, 121, 119, 87, 93, 73, 91, 93, 92, 90, 68, 28, 81, 84, 16, 20, 24, 25, 22, 22, 91, 84, 84, 91, 85, 65, 88, 90, 82, 91, 84, 94, 86, 77, 90, 93, 93, 95, 64, 94, 71, 4, 22, 19, 18, 20, 85, 90, 91, 95, 93, 81, 102, 107, 125, 115, 91, 85, 64, 86, 90, 86, 87, 64, 24, 65, 77, 65, 16, 20, 78, 2, 20, 77, 29, 22, 83, 88, 88, 95, 17, 79, 77, 24]);
var filter_items = {};
var choice = {
season: 0,
Expand Down Expand Up @@ -13361,7 +13373,7 @@
function hdvb(component, _object) {
var network = new Lampa.Reguest();
var extract = [];
var backend = 'http://back.freebie.tom.ru/lampa/hdvburl?v=2423';
var backend = 'http://back.freebie.tom.ru/lampa/hdvburl?v=967';
var object = _object;
var select_title = '';
var select_id = '';
Expand Down Expand Up @@ -14934,7 +14946,7 @@
};
}

var mod_version = '12.01.2024';
var mod_version = '13.01.2024';
var isMSX = !!(window.TVXHost || window.TVXManager);
var isTizen = navigator.userAgent.toLowerCase().indexOf('tizen') !== -1;
var isIFrame = window.parent !== window;
Expand Down

0 comments on commit 15fc69d

Please sign in to comment.