mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
add preview
This commit is contained in:
@@ -74,6 +74,8 @@ async def interrogate(f):
|
||||
if 'caption' in res:
|
||||
for term in res.caption.split(', '):
|
||||
term = term.replace('(', '').replace(')', '').split(':')
|
||||
if len(term) < 2:
|
||||
continue
|
||||
keywords[term[0]] = term[1]
|
||||
keywords = dict(sorted(keywords.items(), key=lambda x:x[1], reverse=True))
|
||||
for word in keywords.items():
|
||||
|
||||
Reference in New Issue
Block a user