Genkan - remove One Shot Scans (#3920)

This commit is contained in:
Mike 2020-07-26 22:19:42 -04:00 committed by GitHub
parent 14ce7017e8
commit d498d0c6aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Genkan (multiple sources)'
pkgNameSuffix = 'all.genkan'
extClass = '.GenkanFactory'
extVersionCode = 21
extVersionCode = 22
libVersion = '1.2'
}

View File

@ -133,7 +133,7 @@ abstract class Genkan(
return if ("ago" in string) {
parseRelativeDate(string) ?: 0
} else {
dateFormat.parse(string).time
dateFormat.parse(string)?.time ?: 0
}
}

View File

@ -9,7 +9,6 @@ class GenkanFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
LeviatanScans(),
LeviatanScansES(),
OneShotScans(),
HunlightScans(),
ZeroScans(),
ReaperScans(),
@ -29,7 +28,6 @@ class GenkanFactory : SourceFactory {
class LeviatanScans : Genkan("Leviatan Scans", "https://leviatanscans.com", "en")
class LeviatanScansES : GenkanOriginal("Leviatan Scans", "https://es.leviatanscans.com", "es")
class OneShotScans : Genkan("One Shot Scans", "https://oneshotscans.com", "en")
class HunlightScans : Genkan("Hunlight Scans", "https://hunlight-scans.info", "en")
class ZeroScans : Genkan("ZeroScans", "https://zeroscans.com", "en")
// Search isn't working on Reaper's website, use GenkanOriginal for now