From cc2926369bf3cf3fec2395f2196c0fbb09638edb Mon Sep 17 00:00:00 2001 From: Dark25 Date: Tue, 26 Mar 2024 23:50:25 +0100 Subject: [PATCH] move to companion object change to static domain --- .../streamingcommunity/StreamingCommunity.kt | 48 +++++-------------- 1 file changed, 12 insertions(+), 36 deletions(-) diff --git a/src/it/streamingcommunity/src/eu/kanade/tachiyomi/animeextension/it/streamingcommunity/StreamingCommunity.kt b/src/it/streamingcommunity/src/eu/kanade/tachiyomi/animeextension/it/streamingcommunity/StreamingCommunity.kt index 3679c187a7..1880ba8685 100644 --- a/src/it/streamingcommunity/src/eu/kanade/tachiyomi/animeextension/it/streamingcommunity/StreamingCommunity.kt +++ b/src/it/streamingcommunity/src/eu/kanade/tachiyomi/animeextension/it/streamingcommunity/StreamingCommunity.kt @@ -2,8 +2,6 @@ package eu.kanade.tachiyomi.animeextension.it.streamingcommunity import android.app.Application import android.content.SharedPreferences -import android.widget.Toast -import androidx.preference.EditTextPreference import androidx.preference.ListPreference import androidx.preference.PreferenceScreen import eu.kanade.tachiyomi.animesource.ConfigurableAnimeSource @@ -33,7 +31,7 @@ class StreamingCommunity : ConfigurableAnimeSource, AnimeHttpSource() { override val name = "StreamingCommunity" - override val baseUrl by lazy { preferences.getString(PREF_DOMAIN_KEY, PREF_DOMAIN_DEFAULT)!! } + override val baseUrl = "https://streamingcommunity.forum" override val lang = "it" @@ -256,15 +254,8 @@ class StreamingCommunity : ConfigurableAnimeSource, AnimeHttpSource() { // ============================ Video Links ============================= - object VideoRegex { - val PLAYLIST_URL_REGEX = Regex("""url: ?'(.*?)'""") - val EXPIRES_REGEX = Regex("""'expires': ?'(\d+)'""") - val TOKEN_REGEX = Regex("""'token': ?'([\w-]+)'""") - val TOKEN_QUALITY_REGEX = Regex("""'token(\d+p?)': ?'([\w-]+)'""") - val SUBTITLES_REGEX = Regex("""#EXT-X-MEDIA:TYPE=SUBTITLES.*?NAME="(.*?)".*?URI="(.*?)"""") - } - @Deprecated("Use the non-RxJava API instead", replaceWith = ReplaceWith("getVideoList")) + @Deprecated("Use the non-RxJava API instead", replaceWith = ReplaceWith("fetchVideoList")) override fun fetchVideoList(episode: SEpisode): Observable> { val videoList = mutableListOf