Add Decadence Scans to MangAdventure (#2188)
Add Decadence Scans to MangAdventure
This commit is contained in:
parent
3308ca3363
commit
a649c171c6
src/all/mangadventure
@ -17,6 +17,10 @@
|
||||
android:scheme="https"
|
||||
android:host="arc-relight.com"
|
||||
android:pathPattern="/reader/..*"/>
|
||||
<data
|
||||
android:scheme="https"
|
||||
android:host="reader.decadencescans.com"
|
||||
android:pathPattern="/reader/..*"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
@ -5,7 +5,7 @@ ext {
|
||||
appName = 'Tachiyomi: MangAdventure'
|
||||
pkgNameSuffix = 'all.mangadventure'
|
||||
extClass = '.MangAdventureFactory'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
8
src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureActivity.kt
8
src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureActivity.kt
@ -8,7 +8,7 @@ import android.util.Log
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
/**
|
||||
* Springboard that accepts {baseUrl}/reader/{slug}
|
||||
* Springboard that accepts `{baseUrl}/reader/{slug}`
|
||||
* intents and redirects them to the main Tachiyomi process.
|
||||
*/
|
||||
class MangAdventureActivity : Activity() {
|
||||
@ -30,8 +30,8 @@ class MangAdventureActivity : Activity() {
|
||||
exitProcess(0)
|
||||
}
|
||||
|
||||
private fun logInvalidIntent(intent: Intent) {
|
||||
Log.e("MangAdventureActivity", "Failed to parse URI from intent: $intent")
|
||||
}
|
||||
private fun logInvalidIntent(intent: Intent) = Log.e(
|
||||
"MangAdventureActivity", "Failed to parse URI from intent: $intent"
|
||||
)
|
||||
|
||||
}
|
||||
|
40
src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureFactory.kt
40
src/all/mangadventure/src/eu/kanade/tachiyomi/extension/all/mangadventure/MangAdventureFactory.kt
@ -4,28 +4,34 @@ import eu.kanade.tachiyomi.source.SourceFactory
|
||||
|
||||
class MangAdventureFactory : SourceFactory {
|
||||
override fun createSources() = listOf(
|
||||
ArcRelight()
|
||||
ArcRelight(),
|
||||
DecadenceScans()
|
||||
)
|
||||
|
||||
/** Arc-Relight source. */
|
||||
class ArcRelight : MangAdventure(
|
||||
"Arc-Relight", "https://arc-relight.com", arrayOf(
|
||||
"4-Koma",
|
||||
"Chaos;Head",
|
||||
"Collection",
|
||||
"Comedy",
|
||||
"Drama",
|
||||
"Jubilee",
|
||||
"Mystery",
|
||||
"Psychological",
|
||||
"Robotics;Notes",
|
||||
"Romance",
|
||||
"Sci-Fi",
|
||||
"Seinen",
|
||||
"Shounen",
|
||||
"Steins;Gate",
|
||||
"Supernatural",
|
||||
"Tragedy"
|
||||
"4-Koma",
|
||||
"Chaos;Head",
|
||||
"Collection",
|
||||
"Comedy",
|
||||
"Drama",
|
||||
"Jubilee",
|
||||
"Mystery",
|
||||
"Psychological",
|
||||
"Robotics;Notes",
|
||||
"Romance",
|
||||
"Sci-Fi",
|
||||
"Seinen",
|
||||
"Shounen",
|
||||
"Steins;Gate",
|
||||
"Supernatural",
|
||||
"Tragedy"
|
||||
)
|
||||
)
|
||||
|
||||
/** Decadence Scans source. */
|
||||
class DecadenceScans : MangAdventure(
|
||||
"Decadence Scans", "https://reader.decadencescans.com"
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user