Skip to content

Commit

Permalink
Merge pull request #78 from AN0NCER/main
Browse files Browse the repository at this point in the history
Continue develop
  • Loading branch information
AN0NCER authored Jan 19, 2024
2 parents 72a5588 + 8cdbe3f commit 0d59359
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions javascript/modules/TunimeApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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) => {
Expand All @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions javascript/pages/player/mod_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var version = '125';
var version = '132';
var cacheName = 'pwa-tunime-v' + version;
var appShellFilesToCache = [
// Директория: /images/icons
Expand Down

0 comments on commit 0d59359

Please sign in to comment.