mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
add ${page} to download subpath
This commit is contained in:
@@ -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) {
|
||||
|
@@ -408,6 +408,7 @@ ${"Some keywords will be replaced by the following rule:".tl}
|
||||
\${author} -> ${"Name of the author".tl}
|
||||
\${id} -> ${"Artwork ID".tl}
|
||||
\${index} -> ${"Index of the image in the artwork".tl}
|
||||
\${page} -> ${"Replace with '-p\${index}' if the work have more than one images, otherwise replace with blank.".tl}
|
||||
\${ext} -> ${"File extension".tl}
|
||||
\${AI} -> ${"Replace with 'AI' if the work was generated by AI, otherwise replace with blank".tl}
|
||||
\${tag(*)} -> ${"Replace with * if the work have tag *, otherwise replace with blank.".tl}
|
||||
|
Reference in New Issue
Block a user