1
0
mirror of https://gist.github.com/6ba37e4d4084e858f917e271550ce5f6.git synced 2024-09-20 00:34:20 +03:00

Add png processing

This commit is contained in:
Victor 2021-04-15 00:38:10 +03:00
parent 3915c453e0
commit 42af39d105

View File

@ -41,7 +41,8 @@ class PicSorter:
library = Library(self.dir_library)
metadata = Metadata(self.dir_tmp)
db = Database()
for filename in self.dir_input.rglob('*.jpg'):
files = {p for p in self.dir_input.iterdir() if p.suffix in [".jpg", ".png"]}
for filename in files:
print("Process ", filename)
try:
url = iqdb.search(filename)