From e8b6c095ef0b3289d6339725225a55e69338d9a0 Mon Sep 17 00:00:00 2001 From: Swakshan Date: Sat, 22 Mar 2025 15:17:31 +0530 Subject: [PATCH] extension(aniplay): make stream proxy optional --- javascript/anime/src/en/aniplay.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/javascript/anime/src/en/aniplay.js b/javascript/anime/src/en/aniplay.js index 6a08fddc..9dfa5a63 100644 --- a/javascript/anime/src/en/aniplay.js +++ b/javascript/anime/src/en/aniplay.js @@ -6,7 +6,7 @@ const mangayomiSources = [{ "iconUrl": "https://www.google.com/s2/favicons?sz=128&domain=https://aniplaynow.live/", "typeSource": "single", "itemType": 1, - "version": "1.2.3", + "version": "1.2.4", "dateFormat": "", "dateFormatLocale": "", "pkgPath": "anime/src/en/aniplay.js" @@ -389,12 +389,11 @@ class DefaultExtension extends MProvider { var slug = "/fetch?url=" var ref = "&ref=" if (providerId == "yuki") { - slug = "/yukiprox?url=" - ref = "" + ref += "https://hianime.to" } else if (providerId == "pahe") { ref += "https://kwik.si" } else if (providerId === "maze") { - ref += "https://animez.org" + ref += "" } else if (providerId === "kuro") { ref = "" } @@ -534,7 +533,7 @@ class DefaultExtension extends MProvider { streams = await this.getAnyStreams(result) //If new provider found getAnyStreams will extract only the streams } - streams = await this.streamProxy(providerId, streams) + if (this.getPreference("aniplay_proxy")) streams = await this.streamProxy(providerId, streams) return await this.sortStreams(streams) } @@ -585,14 +584,14 @@ class DefaultExtension extends MProvider { "entries": ["Sub", "Dub"], "entryValues": ["sub", "dub"], } - }, { + }, { "key": "aniplay_pref_extract_streams", "switchPreferenceCompat": { 'title': 'Split stream into different quality streams', "summary": "Split stream Auto into 360p/720p/1080p", "value": true } - },{ + }, { key: 'aniplay_pref_video_resolution', listPreference: { title: 'Preferred video resolution', @@ -601,6 +600,13 @@ class DefaultExtension extends MProvider { entries: ["Auto", "1080p", "720p", "480p", "360p"], entryValues: ["auto", "1080", "720", "480", "360"] } + }, { + key: "aniplay_proxy", + switchPreferenceCompat: { + title: 'Enable stream proxy', + summary: "", + value: false + } }, { key: "aniplay_stream_proxy", editTextPreference: {