Add Decadence Scans to MangAdventure (#2188)

Add Decadence Scans to MangAdventure
This commit is contained in:
ObserverOfTime 2020-02-05 02:38:25 +02:00 committed by GitHub
parent 3308ca3363
commit a649c171c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 22 deletions

View File

@ -17,6 +17,10 @@
android:scheme="https" android:scheme="https"
android:host="arc-relight.com" android:host="arc-relight.com"
android:pathPattern="/reader/..*"/> android:pathPattern="/reader/..*"/>
<data
android:scheme="https"
android:host="reader.decadencescans.com"
android:pathPattern="/reader/..*"/>
</intent-filter> </intent-filter>
</activity> </activity>
</application> </application>

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangAdventure' appName = 'Tachiyomi: MangAdventure'
pkgNameSuffix = 'all.mangadventure' pkgNameSuffix = 'all.mangadventure'
extClass = '.MangAdventureFactory' extClass = '.MangAdventureFactory'
extVersionCode = 4 extVersionCode = 5
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -8,7 +8,7 @@ import android.util.Log
import kotlin.system.exitProcess 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. * intents and redirects them to the main Tachiyomi process.
*/ */
class MangAdventureActivity : Activity() { class MangAdventureActivity : Activity() {
@ -30,8 +30,8 @@ class MangAdventureActivity : Activity() {
exitProcess(0) exitProcess(0)
} }
private fun logInvalidIntent(intent: Intent) { private fun logInvalidIntent(intent: Intent) = Log.e(
Log.e("MangAdventureActivity", "Failed to parse URI from intent: $intent") "MangAdventureActivity", "Failed to parse URI from intent: $intent"
} )
} }

View File

@ -4,7 +4,8 @@ import eu.kanade.tachiyomi.source.SourceFactory
class MangAdventureFactory : SourceFactory { class MangAdventureFactory : SourceFactory {
override fun createSources() = listOf( override fun createSources() = listOf(
ArcRelight() ArcRelight(),
DecadenceScans()
) )
/** Arc-Relight source. */ /** Arc-Relight source. */
@ -28,4 +29,9 @@ class MangAdventureFactory : SourceFactory {
"Tragedy" "Tragedy"
) )
) )
/** Decadence Scans source. */
class DecadenceScans : MangAdventure(
"Decadence Scans", "https://reader.decadencescans.com"
)
} }