diff --git a/javascript/modules/TunimeApi.js b/javascript/modules/TunimeApi.js index 4297709..3cf717c 100644 --- a/javascript/modules/TunimeApi.js +++ b/javascript/modules/TunimeApi.js @@ -38,7 +38,7 @@ class Tunime { online() { const data = this.access; - fetch(`http://${this.url}/online/`, { + fetch(`https://${this.url}/online/`, { method: 'POST', body: new URLSearchParams({ id: data.id, key: data.key }) }).then((response) => { @@ -65,7 +65,7 @@ class Tunime { anime(id) { const data = this.access; - fetch(`http://${this.url}/online/${id}/o`, { + fetch(`https://${this.url}/online/${id}/o`, { method: 'POST', body: new URLSearchParams({ id: data.id, key: data.key }) }).then((response) => { @@ -81,7 +81,7 @@ class Tunime { stream(url) { return new Promise(async (resolve) => { const access = this.access; - fetch(`http://anime-m3u8.onrender.com/link-anime`, { + fetch(`https://anime-m3u8.onrender.com/link-anime`, { body: new URLSearchParams({ 'link': url, 'id': access.id, diff --git a/javascript/pages/player/mod_stream.js b/javascript/pages/player/mod_stream.js index 7d8ff8f..ba7d883 100644 --- a/javascript/pages/player/mod_stream.js +++ b/javascript/pages/player/mod_stream.js @@ -88,11 +88,11 @@ function GenLink(streams) { return blobUrl; } else { if (QUALITY == '720') { - return ApiTunime.link_file({ q720: STREAMS[720][0].src, q480: STREAMS[480][0].src, q360: STREAMS[360][0].src }); + return ApiTunime.link({ q720: STREAMS[720][0].src, q480: STREAMS[480][0].src, q360: STREAMS[360][0].src }); } else if (QUALITY == '480') { - return ApiTunime.link_file({ q480: STREAMS[480][0].src, q360: STREAMS[360][0].src }); + return ApiTunime.link({ q480: STREAMS[480][0].src, q360: STREAMS[360][0].src }); } else { - return ApiTunime.link_file({ q360: STREAMS[360][0].src }); + return ApiTunime.link({ q360: STREAMS[360][0].src }); } } } else { diff --git a/sw.js b/sw.js index 2467604..042a66d 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -var version = '125'; +var version = '132'; var cacheName = 'pwa-tunime-v' + version; var appShellFilesToCache = [ // Директория: /images/icons