rewrite getting artist images using classes

- remove left padding on #acontent
This commit is contained in:
geoffrey45
2022-05-31 00:05:37 +03:00
parent 94504a1575
commit 9879f131e8
6 changed files with 107 additions and 51 deletions
+6 -6
View File
@@ -106,13 +106,13 @@ class Populate:
"""
s = time.time()
# print(f"Started tagging files")
# with ThreadPoolExecutor() as executor:
# executor.map(self.get_tags, self.files)
print(f"Started tagging files")
with ThreadPoolExecutor() as executor:
executor.map(self.get_tags, self.files)
with Pool(maxtasksperchild=10) as p:
tags = p.map(get_tags, tqdm(self.files))
self.process_tags(tags)
# with Pool(maxtasksperchild=10, processes=10) as p:
# tags = p.map(get_tags, tqdm(self.files))
# self.process_tags(tags)
# for t in tqdm(self.files):
# self.get_tags(t)