updated metadata
This commit is contained in:
parent
446e488717
commit
ea43b22c1f
@ -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)
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user