Skip to content

Commit

Permalink
feat(src/all): Add AniZone
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark25 committed Aug 1, 2024
1 parent c8f57f9 commit 7e4bb21
Show file tree
Hide file tree
Showing 9 changed files with 530 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ class PlaylistUtils(private val client: OkHttpClient, private val headers: Heade
}.toList()

return masterPlaylist.substringAfter(PLAYLIST_SEPARATOR).split(PLAYLIST_SEPARATOR).mapNotNull {
val codec = it.substringAfter("CODECS=\"", "").substringBefore("\"", "")
if (codec.isNotEmpty()) {
if (codec.startsWith("mp4a")) return@mapNotNull null
}

val resolution = it.substringAfter("RESOLUTION=")
.substringBefore("\n")
.substringAfter("x")
Expand Down
11 changes: 11 additions & 0 deletions src/all/anizone/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ext {
extName = 'AniZone'
extClass = '.AniZone'
extVersionCode = 2
}

apply from: "$rootDir/common.gradle"

dependencies {
implementation(project(":lib:playlist-utils"))
}
Binary file added src/all/anizone/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 src/all/anizone/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 src/all/anizone/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 src/all/anizone/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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7e4bb21

Please sign in to comment.