update the metadata when pulling from history. Get the items metadata instead of just the history attributes

This commit is contained in:
blacktwin 2020-12-20 15:51:18 -05:00
parent ebfbc51f72
commit 06589274bf

View File

@ -461,6 +461,8 @@ def watched_work(user, sectionID=None, ratingKey=None):
if user.watch.get(metadata.rating_key): if user.watch.get(metadata.rating_key):
user.watch.get(metadata.rating_key).watched_status += 1 user.watch.get(metadata.rating_key).watched_status += 1
else: else:
_meta = tautulli_server.get_metadata(metadata.rating_key)
metadata = Metadata(_meta)
user.watch.update({metadata.rating_key: metadata}) user.watch.update({metadata.rating_key: metadata})
continue continue