mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-22 22:23:36 -07:00
check for media_type to be compatible with API
This commit is contained in:
parent
dc16df9192
commit
cff3a4153c
1 changed files with 2 additions and 2 deletions
|
@ -1157,7 +1157,7 @@ class DataFactory(object):
|
||||||
group_by = 'session_history.reference_id' if grouping else 'session_history.id'
|
group_by = 'session_history.reference_id' if grouping else 'session_history.id'
|
||||||
|
|
||||||
_rating_keys = []
|
_rating_keys = []
|
||||||
if media_type == 'collection':
|
if media_type and media_type == 'collection':
|
||||||
pms_connect = pmsconnect.PmsConnect()
|
pms_connect = pmsconnect.PmsConnect()
|
||||||
result = pms_connect.get_item_children(rating_key=rating_key)
|
result = pms_connect.get_item_children(rating_key=rating_key)
|
||||||
|
|
||||||
|
@ -1239,7 +1239,7 @@ class DataFactory(object):
|
||||||
group_by = 'session_history.reference_id' if grouping else 'session_history.id'
|
group_by = 'session_history.reference_id' if grouping else 'session_history.id'
|
||||||
|
|
||||||
_rating_keys = []
|
_rating_keys = []
|
||||||
if media_type == 'collection':
|
if media_type and media_type == 'collection':
|
||||||
pms_connect = pmsconnect.PmsConnect()
|
pms_connect = pmsconnect.PmsConnect()
|
||||||
result = pms_connect.get_item_children(rating_key=rating_key)
|
result = pms_connect.get_item_children(rating_key=rating_key)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue