Merge branch 'Kohi-den:main' into fix-lycoris
This commit is contained in:
commit
00b958f79c
7 changed files with 23 additions and 21 deletions
29
.github/workflows/build_push.yml
vendored
29
.github/workflows/build_push.yml
vendored
|
@ -31,14 +31,15 @@ jobs:
|
|||
ref: main
|
||||
token: ${{ secrets.BOT_PAT }}
|
||||
|
||||
- name: Find lib changes
|
||||
id: modified-libs
|
||||
uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 #v42
|
||||
with:
|
||||
files: lib/
|
||||
files_ignore: lib/**.md
|
||||
files_separator: " "
|
||||
safe_output: false
|
||||
# Temporary pause because of leak of tj-actions/changed-files
|
||||
# - name: Find lib changes
|
||||
# id: modified-libs
|
||||
# uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 #v42
|
||||
# with:
|
||||
# files: lib/
|
||||
# files_ignore: lib/**.md
|
||||
# files_separator: " "
|
||||
# safe_output: false
|
||||
|
||||
- name: Import GPG key
|
||||
uses: crazy-max/ghaction-import-gpg@v6 # v6.1.0
|
||||
|
@ -48,12 +49,12 @@ jobs:
|
|||
git_user_signingkey: true
|
||||
git_commit_gpgsign: true
|
||||
|
||||
# This step is going to commit, but this will not trigger another workflow.
|
||||
- name: Bump extensions that uses a modified lib
|
||||
if: steps.modified-libs.outputs.any_changed == 'true'
|
||||
run: |
|
||||
chmod +x ./.github/scripts/bump-versions.py
|
||||
./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }}
|
||||
# # This step is going to commit, but this will not trigger another workflow.
|
||||
# - name: Bump extensions that uses a modified lib
|
||||
# if: steps.modified-libs.outputs.any_changed == 'true'
|
||||
# run: |
|
||||
# chmod +x ./.github/scripts/bump-versions.py
|
||||
# ./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }}
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/wrapper-validation-action@a494d935f4b56874c4a5a87d19af7afcf3a163d0 # v2
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'ANIMEWORLD.tv'
|
||||
extClass = '.ANIMEWORLD'
|
||||
extVersionCode = 46
|
||||
extVersionCode = 47
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -34,7 +34,7 @@ class ANIMEWORLD : ConfigurableAnimeSource, ParsedAnimeHttpSource() {
|
|||
|
||||
// TODO: Check frequency of url changes to potentially
|
||||
// add back overridable baseurl preference
|
||||
override val baseUrl = "https://www.animeworld.so"
|
||||
override val baseUrl = "https://www.animeworld.ac"
|
||||
|
||||
override val lang = "it"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ ext {
|
|||
extClass = '.Q1N'
|
||||
themePkg = 'dooplay'
|
||||
baseUrl = 'https://q1n.net'
|
||||
overrideVersionCode = 17
|
||||
overrideVersionCode = 18
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -129,6 +129,7 @@ class Q1N : DooPlay(
|
|||
"mixdrop" in name -> mixDropExtractor.videoFromUrl(url)
|
||||
"streamtape" in name -> streamTapeExtractor.videosFromUrl(url)
|
||||
"noa" in name -> noaExtractor.videosFromUrl(url)
|
||||
"mdplayer" in name -> noaExtractor.videosFromUrl(url, "MDPLAYER")
|
||||
"/player/" in url -> bloggerExtractor.videosFromUrl(url, headers)
|
||||
else -> emptyList()
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import okhttp3.Headers
|
|||
import okhttp3.OkHttpClient
|
||||
|
||||
class NoaExtractor(private val client: OkHttpClient, private val headers: Headers) {
|
||||
fun videosFromUrl(url: String): List<Video> {
|
||||
fun videosFromUrl(url: String, name: String = "NOA"): List<Video> {
|
||||
val body = client.newCall(GET(url)).execute()
|
||||
.body.string()
|
||||
|
||||
|
@ -16,7 +16,7 @@ class NoaExtractor(private val client: OkHttpClient, private val headers: Header
|
|||
.substringAfter(":\"")
|
||||
.substringBefore('"')
|
||||
.replace("\\", "")
|
||||
listOf(Video(videoUrl, "NOA", videoUrl, headers))
|
||||
listOf(Video(videoUrl, name, videoUrl, headers))
|
||||
}
|
||||
|
||||
"sources:" in body -> {
|
||||
|
@ -31,7 +31,7 @@ class NoaExtractor(private val client: OkHttpClient, private val headers: Header
|
|||
.substringAfter(":\"")
|
||||
.substringBefore('"')
|
||||
.replace("\\", "")
|
||||
Video(videoUrl, "NOA - $label", videoUrl, headers)
|
||||
Video(videoUrl, "$name - $label", videoUrl, headers)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class RuplayExtractor(private val client: OkHttpClient) {
|
|||
.split(",")
|
||||
.map {
|
||||
val videoUrl = it.substringAfter("]")
|
||||
val quality = it.substringAfter("[").substringBefore("]")
|
||||
val quality = it.substringAfter("[", "").substringBefore("]").ifEmpty { "Default" }
|
||||
val headers = Headers.headersOf("Referer", videoUrl)
|
||||
Video(videoUrl, "Ruplay - $quality", videoUrl, headers = headers)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue