Don't update existing dir

This commit is contained in:
小白-白 authored and tarsin committed 2023-04-01 11:18:32 +08:00
1 parent c4c4fdc647
commit fd79d5d034
1 file changed
+1 -1
@@ -59,7 +59,7 @@ class SpiderDen(private val mGalleryInfo: GalleryInfo) {
var mode = SpiderQueen.MODE_READ
set(value) {
field = value
if (field == SpiderQueen.MODE_DOWNLOAD) {
if (field == SpiderQueen.MODE_DOWNLOAD && downloadDir == null) {
val title = getSuitableTitle(mGalleryInfo)
val dirname = FileUtils.sanitizeFilename("$mGid-$title")
EhDB.putDownloadDirname(mGid, dirname)