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