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

Feat(id/OtakuDesu): add hidevid extractor #89

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/id/otakudesu/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
ext {
extName = 'OtakuDesu'
extClass = '.OtakuDesu'
extVersionCode = 26
extVersionCode = 27
}

apply from: "$rootDir/common.gradle"

dependencies {
implementation(project(":lib:yourupload-extractor"))
implementation(project(":lib:streamwish-extractor"))
implementation(project(":lib:streamhidevid-extractor"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.animesource.model.SEpisode
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.animesource.online.ParsedAnimeHttpSource
import eu.kanade.tachiyomi.lib.streamhidevidextractor.StreamHideVidExtractor
import eu.kanade.tachiyomi.lib.streamwishextractor.StreamWishExtractor
import eu.kanade.tachiyomi.lib.youruploadextractor.YourUploadExtractor
import eu.kanade.tachiyomi.network.GET
Expand Down Expand Up @@ -222,6 +223,7 @@ class OtakuDesu : ConfigurableAnimeSource, ParsedAnimeHttpSource() {

private val filelionsExtractor by lazy { StreamWishExtractor(client, headers) }
private val yourUploadExtractor by lazy { YourUploadExtractor(client) }
private val streamHideVidExtractor by lazy { StreamHideVidExtractor(client) }

private fun getVideosFromEmbed(quality: String, link: String): List<Video> {
return when {
Expand Down Expand Up @@ -251,6 +253,9 @@ class OtakuDesu : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
listOf(Video(videoUrl, "Mp4upload - $quality", videoUrl, headers))
}
}
"vidhide" in link -> {
streamHideVidExtractor.videosFromUrl(link)
}
else -> emptyList()
}
}
Expand Down