updated metadata

This commit is contained in:
Blacktwin 2018-03-24 13:58:47 -04:00
parent 446e488717
commit ea43b22c1f
3 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ def get_metadata(rating_key):
r = requests.get(TAUTULLI_URL.rstrip('/') + '/api/v2', params=payload)
response = r.json()
res_data = response['response']['data']['metadata']
res_data = response['response']['data']
if STARTFRAME <= int(res_data['added_at']) <= ENDFRAME:
return METAINFO(data=res_data)

View File

@ -75,7 +75,7 @@ def get_metadata(rating_key):
r = requests.get(TAUTULLI_URL.rstrip('/') + '/api/v2', params=payload)
response = r.json()
res_data = response['response']['data']['metadata']
res_data = response['response']['data']
return METAINFO(data=res_data)
except Exception as e:

View File

@ -41,7 +41,7 @@ def get_metadata(rating_key):
r = requests.get(TAUTULLI_URL.rstrip('/') + '/api/v2', params=payload)
response = r.json()
res_data = response['response']['data']['metadata']
res_data = response['response']['data']
if res_data['library_name'] in LIBRARY_NAMES:
return METAINFO(data=res_data)