Remove some legacy folder/file name lookup for download
Related to mihonapp/mihon#705 (cherry picked from commit e55e5f6f64f872475d370d6ce0c186e2601776e4)
This commit is contained in:
parent
e10662f26a
commit
167353747b
1 changed files with 1 additions and 10 deletions
|
|
@ -184,21 +184,12 @@ class DownloadProvider(
|
||||||
*/
|
*/
|
||||||
fun getValidChapterDirNames(chapterName: String, chapterScanlator: String?): List<String> {
|
fun getValidChapterDirNames(chapterName: String, chapterScanlator: String?): List<String> {
|
||||||
val chapterDirName = getChapterDirName(chapterName, chapterScanlator)
|
val chapterDirName = getChapterDirName(chapterName, chapterScanlator)
|
||||||
return buildList(4) {
|
return buildList(2) {
|
||||||
// Folder of images
|
// Folder of images
|
||||||
add(chapterDirName)
|
add(chapterDirName)
|
||||||
|
|
||||||
// Archived chapters
|
// Archived chapters
|
||||||
add("$chapterDirName.cbz")
|
add("$chapterDirName.cbz")
|
||||||
|
|
||||||
if (chapterScanlator.isNullOrBlank()) {
|
|
||||||
// Previously null scanlator fields were converted to "" due to a bug
|
|
||||||
add("_$chapterDirName")
|
|
||||||
add("_$chapterDirName.cbz")
|
|
||||||
} else {
|
|
||||||
// Legacy chapter directory name used in v0.9.2 and before
|
|
||||||
add(DiskUtil.buildValidFilename(chapterName))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue