This commit is contained in:
wgh19
2024-05-15 22:16:44 +08:00
parent 0181c4b65e
commit 4ada655bbd
4 changed files with 102 additions and 16 deletions

View File

@@ -129,7 +129,6 @@ class DownloadingTask {
String subPathPatten = appdata.settings["downloadSubPath"];
final tagsWeight = (appdata.settings["tagsWeight"] as String).split(' ');
final originalTags = List<Tag>.from(illust.tags);
print(originalTags);
originalTags.sort((a, b){
var aWeight = tagsWeight.indexOf(a.name);
if(aWeight == -1) aWeight = tagsWeight.length;
@@ -137,7 +136,6 @@ class DownloadingTask {
if(bWeight == -1) bWeight = tagsWeight.length;
return aWeight - bWeight;
});
print(originalTags);
final tags = appdata.settings["useTranslatedNameForDownload"] == false
? originalTags.map((e) => e.name).toList()
: originalTags.map((e) => e.translatedName ?? e.name).toList();