Fixed %explicit% for Album Folders
authorRemixDev <DeezloaderRemix@gmail.com>
Tue, 4 Sep 2018 15:52:33 +0000 (17:52 +0200)
committerRemixDev <DeezloaderRemix@gmail.com>
Tue, 4 Sep 2018 15:52:33 +0000 (17:52 +0200)
app/app.js

index 7246f6b500e0493117d2ac086732646ddc569ac8..f801ad2cd049994e1bd822f9d2def82b4d4b8430 100644 (file)
@@ -1742,7 +1742,7 @@ function settingsRegexAlbum(foldername, artist, album, year, rtype, explicit, pu
                foldername = foldername.replace(/%type%/g, "");
        }
        foldername = foldername.replace(/%label%/g, publisher);
                foldername = foldername.replace(/%type%/g, "");
        }
        foldername = foldername.replace(/%label%/g, publisher);
-       foldername = foldername.replace(/%explicit%/g, (explicit==="1" ? (foldername.indexOf(/[^%]explicit/g)>-1 ? "" : "(Explicit)") : ""));
+       foldername = foldername.replace(/%explicit%/g, (explicit ? (foldername.indexOf(/[^%]explicit/g)>-1 ? "" : "(Explicit)") : ""));
        return foldername.trim();
 }
 
        return foldername.trim();
 }