Paprika - add mangadogs.fun (#3776)

This commit is contained in:
Mike 2020-07-13 00:25:29 -04:00 committed by GitHub
parent 61c0887123
commit 4f9a63317e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Paprika'
pkgNameSuffix = 'all.paprika'
extClass = '.PaprikaFactory'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -162,8 +162,7 @@ abstract class Paprika(
}?.timeInMillis ?: 0L
}
else -> SimpleDateFormat("MMM d yy", Locale.US)
.parse("${this.substringBefore(",")} $currentYear")
.time
.parse("${this.substringBefore(",")} $currentYear")?.time ?: 0
}
} catch (_: Exception) {
0L

View File

@ -10,7 +10,8 @@ class PaprikaFactory : SourceFactory {
MangazukiXyz(),
MangaTensei(),
MangaNelo(),
MangaWindowClub()
MangaWindowClub(),
MangaDogs()
)
}
@ -18,3 +19,4 @@ class MangazukiXyz : Paprika("MangaZuki.xyz", "https://ir2me.com", "en")
class MangaTensei : Paprika("MangaTensei", "https://www.mangatensei.com", "en")
class MangaNelo : Paprika("MangaNelos.com", "http://manganelos.com", "en")
class MangaWindowClub : PaprikaAlt("MangaWindow.club", "https://mangawindow.club", "en")
class MangaDogs : Paprika("MangaDogs.fun", "http://mangadogs.fun", "en")