Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continue develop #78

Merged
merged 9 commits into from
Jan 19, 2024
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