Bug fix
This commit is contained in:
@@ -104,8 +104,10 @@ class DownloadManager private constructor(context: Context) : ContextWrapper(con
|
||||
|
||||
val folder = downloadFolder.getChild(name)
|
||||
|
||||
if (!folder.exists())
|
||||
folder.mkdir()
|
||||
if (folder.exists())
|
||||
return
|
||||
|
||||
folder.mkdir()
|
||||
|
||||
downloadFolderMap[galleryID] = folder.name
|
||||
|
||||
|
||||
@@ -93,14 +93,14 @@ fun GalleryBlock.formatDownloadFolder(): String =
|
||||
formatMap.entries.fold(it) { str, (k, v) ->
|
||||
str.replace(k, v.invoke(this), true)
|
||||
}
|
||||
}.replace("/", "")
|
||||
}.replace(Regex("""[*\\|"?><:/]"""), "")
|
||||
|
||||
fun GalleryBlock.formatDownloadFolderTest(format: String): String =
|
||||
format.let {
|
||||
formatMap.entries.fold(it) { str, (k, v) ->
|
||||
str.replace(k, v.invoke(this), true)
|
||||
}
|
||||
}.replace("/", "")
|
||||
}.replace(Regex("""[*\\|"?><:/]"""), "")
|
||||
|
||||
val Reader.requestBuilders: List<Request.Builder>
|
||||
get() {
|
||||
|
||||
Reference in New Issue
Block a user