1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-07-31 11:55:53 +02:00

Added chapter recognition for "season" case

This commit is contained in:
NoodleMage
2016-06-02 16:39:19 +02:00
parent eec728f162
commit 10ec3a9b0c
2 changed files with 16 additions and 1 deletions
app/src
main
java
eu
kanade
test
java
eu

@ -29,8 +29,12 @@ object ChapterRecognition {
* Regex used to remove unwanted tags
* Example Prison School 12 v.1 vol004 version1243 volume64 -R> Prison School 12
*/
private val unwanted = Regex("""(?:(v|ver|vol|version|volume).?[0-9]+)""")
private val unwanted = Regex("""(?:(v|ver|vol|version|volume|season).?[0-9]+)""")
/**
* Regex used to remove unwanted whitespace
* Example One Piece 12 special -R> One Piece 12special
*/
private val unwantedWhiteSpace = Regex("""(\s)(extra|special|omake)""")
fun parseChapterNumber(chapter: Chapter, manga: Manga) {