Update delete_watched_TV.py - Episodes with the same Title
Fixed an issue where if multiple episodes had the same title, they were not being deleted properly.
This commit is contained in:
parent
e097a07ca5
commit
0d987065c0
@ -89,7 +89,7 @@ for user in USER_LST:
|
||||
for rating_key in history:
|
||||
# Getting metadata of what was watched
|
||||
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 = {
|
||||
'title': meta.title,
|
||||
'file': meta.file,
|
||||
@ -100,7 +100,7 @@ for user in USER_LST:
|
||||
meta_lst.append(meta_dict)
|
||||
else:
|
||||
for d in meta_lst:
|
||||
if d['title'] == meta.title:
|
||||
if d['file'] == meta.file:
|
||||
d['watched_by'].append(user)
|
||||
continue
|
||||
elif not all([history]):
|
||||
|
Loading…
Reference in New Issue
Block a user