add preview

This commit is contained in:
Vladimir Mandic
2023-01-23 13:24:22 -05:00
parent a060d5875f
commit 7d85ac1502
5 changed files with 19 additions and 18 deletions
+2
View File
@@ -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():