add ${page} to download subpath

This commit is contained in:
wgh19
2024-05-17 18:00:21 +08:00
parent 1fecb8d55d
commit 811b7b4ed8
3 changed files with 7 additions and 2 deletions

View File

@@ -131,6 +131,8 @@ class DownloadingTask {
subPathPatten = subPathPatten.replaceAll(r"${title}", illust.title);
subPathPatten = subPathPatten.replaceAll(r"${author}", illust.author.name);
subPathPatten = subPathPatten.replaceAll(r"${index}", index.toString());
subPathPatten = subPathPatten.replaceAll(r"${page}",
illust.images.length == 1 ? "" : "-p$index");
subPathPatten = subPathPatten.replaceAll(r"${ext}", ext);
subPathPatten = subPathPatten.replaceAll(r"${AI}", illust.isAi ? "AI" : "");
List<String> extractTags(String input) {