chore(src/es and ar) Fix Hackstore and Anime4up (#40)
* chore(src/es): Change Domain on Hackstore and add VidHideExtractor Checklist: - [x] Updated `extVersionCode` value in `build.gradle` for individual extensions - [x] Have not changed source names - [x] Have explicitly kept the `id` if a source's name or language were changed - [x] Have tested the modifications by compiling and running the extension through Android Studio * chore(src/ar): fix VideoListParse on Anime4up
This commit is contained in:
parent
28ee7278d5
commit
cfb8c4775e
4 changed files with 10 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Anime4up'
|
||||
extClass = '.Anime4Up'
|
||||
extVersionCode = 56
|
||||
extVersionCode = 57
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -22,7 +22,6 @@ import eu.kanade.tachiyomi.lib.vidbomextractor.VidBomExtractor
|
|||
import eu.kanade.tachiyomi.lib.voeextractor.VoeExtractor
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
import eu.kanade.tachiyomi.util.parallelCatchingFlatMapBlocking
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.decodeFromString
|
||||
import kotlinx.serialization.json.Json
|
||||
|
@ -154,7 +153,7 @@ class Anime4Up : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||
val parsedData = json.decodeFromString<Qualities>(base64)
|
||||
val streamLinks = with(parsedData) { fhd + hd + sd }
|
||||
|
||||
return streamLinks.values.distinct().parallelCatchingFlatMapBlocking(::extractVideos)
|
||||
return streamLinks.values.distinct().flatMap(::extractVideos)
|
||||
}
|
||||
|
||||
private val uqloadExtractor by lazy { UqloadExtractor(client) }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Hackstore'
|
||||
extClass = '.Hackstore'
|
||||
extVersionCode = 9
|
||||
extVersionCode = 10
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -12,4 +12,5 @@ dependencies {
|
|||
implementation(project(':lib:filemoon-extractor'))
|
||||
implementation(project(':lib:streamwish-extractor'))
|
||||
implementation(project(':lib:dood-extractor'))
|
||||
implementation(project(':lib:vidhide-extractor'))
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
|
|||
import eu.kanade.tachiyomi.lib.filemoonextractor.FilemoonExtractor
|
||||
import eu.kanade.tachiyomi.lib.streamtapeextractor.StreamTapeExtractor
|
||||
import eu.kanade.tachiyomi.lib.streamwishextractor.StreamWishExtractor
|
||||
import eu.kanade.tachiyomi.lib.vidhideextractor.VidHideExtractor
|
||||
import eu.kanade.tachiyomi.lib.voeextractor.VoeExtractor
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.util.asJsoup
|
||||
|
@ -32,7 +33,7 @@ class Hackstore : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||
|
||||
override val name = "Hackstore"
|
||||
|
||||
override val baseUrl = "https://hackstore.to"
|
||||
override val baseUrl = "https://hackstore.fo"
|
||||
|
||||
override val lang = "es"
|
||||
|
||||
|
@ -177,6 +178,7 @@ class Hackstore : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||
private val filemoonExtractor by lazy { FilemoonExtractor(client) }
|
||||
private val streamWishExtractor by lazy { StreamWishExtractor(client, headers) }
|
||||
private val doodExtractor by lazy { DoodExtractor(client) }
|
||||
private val vidHideExtractor by lazy { VidHideExtractor(client, headers) }
|
||||
|
||||
override fun videoListParse(response: Response): List<Video> {
|
||||
val document = response.asJsoup()
|
||||
|
@ -202,6 +204,9 @@ class Hackstore : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||
server.contains("doodstream") || server.contains("dood.") || server.contains("ds2play") || server.contains("doods.") -> {
|
||||
doodExtractor.videosFromUrl(url, "$prefix DoodStream")
|
||||
}
|
||||
server.contains("vidhide") || server.contains("vid.") -> {
|
||||
vidHideExtractor.videosFromUrl(url) { "$prefix VidHide:$it" }
|
||||
}
|
||||
else -> emptyList()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue