mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Check for metadata before attempting to write session history
This commit is contained in:
parent
1a2e205c1f
commit
6aa0d4cd0b
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ class ActivityProcessor(object):
|
||||||
logger.debug(u"PlexPy ActivityProcessor :: Fetching metadata for item ratingKey %s" % session['rating_key'])
|
logger.debug(u"PlexPy ActivityProcessor :: Fetching metadata for item ratingKey %s" % session['rating_key'])
|
||||||
pms_connect = pmsconnect.PmsConnect()
|
pms_connect = pmsconnect.PmsConnect()
|
||||||
result = pms_connect.get_metadata_details(rating_key=str(session['rating_key']))
|
result = pms_connect.get_metadata_details(rating_key=str(session['rating_key']))
|
||||||
if result:
|
if result and result['metadata']:
|
||||||
metadata = result['metadata']
|
metadata = result['metadata']
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue