mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Fallback to title if missing index for update metadata
This commit is contained in:
parent
6d365c174a
commit
041a35a35a
2 changed files with 5 additions and 5 deletions
|
@ -1467,7 +1467,7 @@ class DataFactory(object):
|
|||
result = monitor_db.select(query=query.format('parent_rating_key', 'rating_key'),
|
||||
args=[item['parent_rating_key']])
|
||||
for item in result:
|
||||
key = item['media_index']
|
||||
key = item['media_index'] if item['media_index'] else item['title']
|
||||
children.update({key: {'rating_key': item['rating_key']}})
|
||||
|
||||
key = item['parent_media_index'] if match_type == 'index' else item['parent_title']
|
||||
|
|
|
@ -2664,7 +2664,7 @@ class PmsConnect(object):
|
|||
child_title = helpers.get_xml_attr(item, 'title')
|
||||
|
||||
if child_rating_key:
|
||||
key = int(child_index)
|
||||
key = int(child_index) if child_index else child_title
|
||||
children.update({key: {'rating_key': int(child_rating_key)}})
|
||||
|
||||
key = int(parent_index) if match_type == 'index' else parent_title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue