Skip to content

Commit

Permalink
fix(tr/animeler): Fix video extractor (#2443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudemirovsky authored Oct 30, 2023
1 parent 1770355 commit 5df1922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tr/animeler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ext {
extName = 'Animeler'
pkgNameSuffix = 'tr.animeler'
extClass = '.Animeler'
extVersionCode = 3
extVersionCode = 4
libVersion = '13'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ class Animeler : AnimeHttpSource(), ConfigurableAnimeSource {
val doc = response.use { it.asJsoup() }
val iframeUrl = doc.selectFirst("div.episode-player-box > iframe")
?.attr("src")
?: doc.selectFirst("script:containsData(embedUrl)")
?.data()
?.substringAfter("\"embedUrl\": \"")
?.substringBefore('"')
?: throw Exception("No video available.")

val playerBody = { it: String ->
Expand Down

0 comments on commit 5df1922

Please sign in to comment.