Skip to content

Commit

Permalink
Remove some legacy folder/file name lookup for download
Browse files Browse the repository at this point in the history
Related to #705
  • Loading branch information
AntsyLich committed May 4, 2024
1 parent 28dca3b commit e55e5f6
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,12 @@ class DownloadProvider(
*/
fun getValidChapterDirNames(chapterName: String, chapterScanlator: String?): List<String> {
val chapterDirName = getChapterDirName(chapterName, chapterScanlator)
return buildList(4) {
return buildList(2) {
// Folder of images
add(chapterDirName)

// Archived chapters
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))
}
}
}
}

0 comments on commit e55e5f6

Please sign in to comment.