Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nb557 committed Dec 15, 2024
1 parent 17d2db8 commit e1d0947
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions online_mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7321,7 +7321,7 @@
if (object.movie.original_name) orig_titles.push(object.movie.original_name);

var display = function display(items) {
if (items && items.length) {
if (items && items.length && items.forEach) {
var is_sure = false;
items.forEach(function (c) {
c.ru_title = c.names && c.names.ru;
Expand Down Expand Up @@ -7407,7 +7407,7 @@
url = Lampa.Utils.addUrlComponent(url, 'search=' + encodeURIComponent(select_title));
network.clear();
network.timeout(1000 * 15);
network["native"](component.proxyLink(url, prox), function (json) {
network.silent(component.proxyLink(url, prox), function (json) {
display(json && json.list);
}, function (a, c) {
component.empty(network.errorDecode(a, c));
Expand Down Expand Up @@ -7703,7 +7703,7 @@
if (object.movie.original_name) orig_titles.push(object.movie.original_name);

var display = function display(items) {
if (items && items.length) {
if (items && items.length && items.forEach) {
var is_sure = false;
items.forEach(function (c) {
c.ru_title = c.name && c.name.main;
Expand Down Expand Up @@ -7786,7 +7786,7 @@
url = Lampa.Utils.addUrlComponent(url, 'query=' + encodeURIComponent(select_title));
network.clear();
network.timeout(1000 * 15);
network["native"](component.proxyLink(url, prox), function (json) {
network.silent(component.proxyLink(url, prox), function (json) {
display(json);
}, function (a, c) {
component.empty(network.errorDecode(a, c));
Expand Down Expand Up @@ -7840,7 +7840,7 @@
var url = embed + 'anime/releases/' + json.id;
network.clear();
network.timeout(1000 * 15);
network["native"](component.proxyLink(url, prox), function (json) {
network.silent(component.proxyLink(url, prox), function (json) {
if (json && json.episodes && json.episodes.length) {
json.ru_title = json.name && json.name.main;
json.en_title = json.name && json.name.english;
Expand Down Expand Up @@ -8176,7 +8176,7 @@
url = Lampa.Utils.addUrlComponent(url, 'q=' + encodeURIComponent(select_title));
network.clear();
network.timeout(1000 * 15);
network["native"](component.proxyLink(url, prox), function (json) {
network.silent(component.proxyLink(url, prox), function (json) {
display(json && json.data);
}, function (a, c) {
component.empty(network.errorDecode(a, c));
Expand Down Expand Up @@ -8234,7 +8234,7 @@
url = Lampa.Utils.addUrlComponent(url, 'anime_id=' + encodeURIComponent(json.slug_url));
network.clear();
network.timeout(1000 * 15);
network["native"](component.proxyLink(url, prox), function (episodes) {
network.silent(component.proxyLink(url, prox), function (episodes) {
if (episodes && episodes.data && episodes.data.length) {
json.episodes = episodes.data;
getPlayers(json.episodes[0], function () {
Expand All @@ -8255,7 +8255,7 @@
var url = embed + 'episodes/' + episode.id;
network.clear();
network.timeout(1000 * 15);
network["native"](component.proxyLink(url, prox), function (json) {
network.silent(component.proxyLink(url, prox), function (json) {
if (json && json.data && json.data.players) {
episode.players = json.data.players.filter(function (p) {
return p.player === 'Animelib';
Expand Down

0 comments on commit e1d0947

Please sign in to comment.