Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Added regex to strip local manga chapter names (#983)

* added regex to strip non-alphanumeric characters in local filenames
Cette révision appartient à :
Ayushya Anand 2017-09-18 14:50:34 +05:30 révisé par Bram van de Kerkhof
Parent 0db4fcc27e
révision ff4a015baa

Voir le fichier

@ -144,7 +144,7 @@ class LocalSource(private val context: Context) : CatalogueSource {
} else {
chapterFile.nameWithoutExtension
}
val chapNameCut = chapName.replace(manga.title, "", true).trim()
val chapNameCut = chapName.replace(manga.title, "", true).trim(' ', '-', '_')
name = if (chapNameCut.isEmpty()) chapName else chapNameCut
date_upload = chapterFile.lastModified()
ChapterRecognition.parseChapterNumber(this, manga)