This commit is contained in:
wgh136
2024-05-16 10:58:12 +08:00
parent 1698928212
commit ae0be5a97d
2 changed files with 2 additions and 3 deletions

View File

@@ -139,9 +139,7 @@ class DownloadingTask {
return matches.map((match) => match.group(1)!).toList();
}
var tags = extractTags(subPathPatten);
print(illust.tags);
for(var tag in tags) {
print(tag);
if (illust.tags.where((e) => e.name == tag || e.translatedName == tag).isNotEmpty) {
subPathPatten = subPathPatten.replaceAll("\${tag($tag)}", tag);
}