mirror of
https://github.com/blacktwin/JBOPS.git
synced 2025-12-11 19:37:18 +00:00
Merge 0d987065c0 into 4580ca0bc6
This commit is contained in:
commit
0a9285e6da
@ -89,7 +89,7 @@ for user in USER_LST:
|
|||||||
for rating_key in history:
|
for rating_key in history:
|
||||||
# Getting metadata of what was watched
|
# Getting metadata of what was watched
|
||||||
meta = get_metadata(rating_key)
|
meta = get_metadata(rating_key)
|
||||||
if not any(d['title'] == meta.title for d in meta_lst):
|
if not any(d['file'] == meta.file for d in meta_lst):
|
||||||
meta_dict = {
|
meta_dict = {
|
||||||
'title': meta.title,
|
'title': meta.title,
|
||||||
'file': meta.file,
|
'file': meta.file,
|
||||||
@ -100,7 +100,7 @@ for user in USER_LST:
|
|||||||
meta_lst.append(meta_dict)
|
meta_lst.append(meta_dict)
|
||||||
else:
|
else:
|
||||||
for d in meta_lst:
|
for d in meta_lst:
|
||||||
if d['title'] == meta.title:
|
if d['file'] == meta.file:
|
||||||
d['watched_by'].append(user)
|
d['watched_by'].append(user)
|
||||||
continue
|
continue
|
||||||
elif not all([history]):
|
elif not all([history]):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user