-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(multisrc/animestream/es): New source: AnimeYT.es and Anime.Tiodo…
…nghua.com and others fixes (#2531)
- Loading branch information
Showing
17 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dependencies { | ||
implementation(project(":lib-okru-extractor")) | ||
implementation(project(":lib-streamtape-extractor")) | ||
implementation(project(":lib-sendvid-extractor")) | ||
} |
Binary file added
BIN
+9.4 KB
multisrc/overrides/animestream/animeytes/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.85 KB
multisrc/overrides/animestream/animeytes/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.3 KB
multisrc/overrides/animestream/animeytes/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.2 KB
multisrc/overrides/animestream/animeytes/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.5 KB
multisrc/overrides/animestream/animeytes/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package eu.kanade.tachiyomi.animeextension.es.animeytes | ||
|
||
import eu.kanade.tachiyomi.animesource.model.Video | ||
import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor | ||
import eu.kanade.tachiyomi.lib.sendvidextractor.SendvidExtractor | ||
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor | ||
import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream | ||
import eu.kanade.tachiyomi.network.GET | ||
|
||
class AnimeYTES : AnimeStream( | ||
"es", | ||
"AnimeYT.es", | ||
"https://animeyt.es", | ||
) { | ||
override val animeListUrl = "$baseUrl/tv" | ||
|
||
// ============================ Video Links ============================= | ||
private val okruExtractor by lazy { OkruExtractor(client) } | ||
private val streamtapeExtractor by lazy { StreamTapeExtractor(client) } | ||
private val sendvidExtractor by lazy { SendvidExtractor(client, headers) } | ||
|
||
override fun getVideoList(url: String, name: String): List<Video> { | ||
return when (name) { | ||
"OK" -> okruExtractor.videosFromUrl(url) | ||
"Stream" -> streamtapeExtractor.videosFromUrl(url) | ||
"Send" -> sendvidExtractor.videosFromUrl(url) | ||
else -> emptyList() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
dependencies { | ||
|
||
implementation(project(":lib-okru-extractor")) | ||
implementation(project(":lib-mixdrop-extractor")) | ||
implementation(project(":lib-voe-extractor")) | ||
implementation(project(":lib-yourupload-extractor")) | ||
} |
Binary file added
BIN
+11.4 KB
multisrc/overrides/animestream/tiodonghua/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.65 KB
multisrc/overrides/animestream/tiodonghua/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.5 KB
multisrc/overrides/animestream/tiodonghua/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.5 KB
multisrc/overrides/animestream/tiodonghua/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.5 KB
multisrc/overrides/animestream/tiodonghua/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions
39
multisrc/overrides/animestream/tiodonghua/src/Tiodonghua.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package eu.kanade.tachiyomi.animeextension.es.tiodonghua | ||
|
||
import androidx.preference.ListPreference | ||
import androidx.preference.PreferenceScreen | ||
import eu.kanade.tachiyomi.animesource.model.Video | ||
import eu.kanade.tachiyomi.lib.mixdropextractor.MixDropExtractor | ||
import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor | ||
import eu.kanade.tachiyomi.lib.voeextractor.VoeExtractor | ||
import eu.kanade.tachiyomi.lib.youruploadextractor.YourUploadExtractor | ||
import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream | ||
import eu.kanade.tachiyomi.network.GET | ||
|
||
class Tiodonghua : AnimeStream( | ||
"es", | ||
"Tiodonghua.com", | ||
"https://anime.tiodonghua.com", | ||
) { | ||
|
||
|
||
// ============================ Video Links ============================= | ||
private val okruExtractor by lazy { OkruExtractor(client) } | ||
private val voeExtractor by lazy { VoeExtractor(client) } | ||
private val youruploadExtractor by lazy { YourUploadExtractor(client) } | ||
private val mixdropExtractor by lazy { MixDropExtractor(client) } | ||
|
||
override fun getVideoList(url: String, name: String): List<Video> { | ||
return when (name) { | ||
"Okru" -> okruExtractor.videosFromUrl(url) | ||
"Voe" -> voeExtractor.videosFromUrl(url) | ||
"YourUpload" -> youruploadExtractor.videoFromUrl(url, headers) | ||
"MixDrop" -> mixdropExtractor.videosFromUrl(url) | ||
else -> emptyList() | ||
} | ||
} | ||
|
||
override val fetchFilters: Boolean | ||
get() = false | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters