#142 compare USER_LST against who watched each episode
This commit is contained in:
parent
0c815e459b
commit
625948b73e
@ -108,8 +108,9 @@ for user in USER_LST:
|
|||||||
|
|
||||||
|
|
||||||
for meta_dict in meta_lst:
|
for meta_dict in meta_lst:
|
||||||
print("{} {} has been watched by {}".format(meta_dict['grandparent_title'].encode('UTF-8'),
|
if set(USER_LST) == set(meta_dict['watched_by']):
|
||||||
meta_dict['title'].encode('UTF-8'),
|
print("{} {} has been watched by {}".format(meta_dict['grandparent_title'].encode('UTF-8'),
|
||||||
" & ".join(USER_LST)))
|
meta_dict['title'].encode('UTF-8'),
|
||||||
print("Removing {}".format(meta_dict['file']))
|
" & ".join(USER_LST)))
|
||||||
os.remove(meta_dict['file'])
|
print("Removing {}".format(meta_dict['file']))
|
||||||
|
os.remove(meta_dict['file'])
|
||||||
|
Loading…
Reference in New Issue
Block a user