mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	DownloadProvider: Remove duplicate in valid chapter dir name list (#7826)
This commit is contained in:
		@@ -157,7 +157,7 @@ class DownloadProvider(private val context: Context) {
 | 
			
		||||
     */
 | 
			
		||||
    fun getValidChapterDirNames(chapterName: String, chapterScanlator: String?): List<String> {
 | 
			
		||||
        val chapterDirName = getChapterDirName(chapterName, chapterScanlator)
 | 
			
		||||
        return buildList(5) {
 | 
			
		||||
        return buildList(4) {
 | 
			
		||||
            // Folder of images
 | 
			
		||||
            add(chapterDirName)
 | 
			
		||||
 | 
			
		||||
@@ -168,10 +168,10 @@ class DownloadProvider(private val context: Context) {
 | 
			
		||||
                // 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))
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // Legacy chapter directory name used in v0.9.2 and before
 | 
			
		||||
            add(DiskUtil.buildValidFilename(chapterName))
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user