mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Fix typos
This commit is contained in:
parent
02cfd8d9b7
commit
a3643b4302
2 changed files with 10 additions and 10 deletions
|
@ -125,8 +125,8 @@ def update_section_ids():
|
|||
library_children = pms_connect.get_library_children_details(section_id=section_id,
|
||||
section_type=section_type)
|
||||
if library_children:
|
||||
children_list = library_children['childern_list']
|
||||
key_mappings.update({child['rating_key']:child['section_id'] for child in children_list})
|
||||
children_list = library_children['children_list']
|
||||
key_mappings.update({child['rating_key']: child['section_id'] for child in children_list})
|
||||
else:
|
||||
logger.warn(u"Tautulli Libraries :: Unable to get a list of library items for section_id %s." % section_id)
|
||||
|
||||
|
@ -198,7 +198,7 @@ def update_labels():
|
|||
label_key=label['label_key'])
|
||||
|
||||
if library_children:
|
||||
children_list = library_children['childern_list']
|
||||
children_list = library_children['children_list']
|
||||
# rating_key_list = [child['rating_key'] for child in children_list]
|
||||
|
||||
for rating_key in [child['rating_key'] for child in children_list]:
|
||||
|
@ -456,7 +456,7 @@ class Libraries(object):
|
|||
get_media_info=True)
|
||||
if library_children:
|
||||
library_count = library_children['library_count']
|
||||
children_list = library_children['childern_list']
|
||||
children_list = library_children['children_list']
|
||||
else:
|
||||
logger.warn(u"Tautulli Libraries :: Unable to get a list of library items.")
|
||||
return default_return
|
||||
|
|
|
@ -2166,16 +2166,16 @@ class PmsConnect(object):
|
|||
logger.warn(u"Tautulli Pmsconnect :: Unable to parse XML for get_library_children_details: %s." % e)
|
||||
return []
|
||||
|
||||
childern_list = []
|
||||
children_list = []
|
||||
|
||||
for a in xml_head:
|
||||
if a.getAttribute('size'):
|
||||
if a.getAttribute('size') == '0':
|
||||
logger.debug(u"Tautulli Pmsconnect :: No library data.")
|
||||
childern_list = {'library_count': '0',
|
||||
'childern_list': []
|
||||
children_list = {'library_count': '0',
|
||||
'children_list': []
|
||||
}
|
||||
return childern_list
|
||||
return children_list
|
||||
|
||||
if rating_key:
|
||||
library_count = helpers.get_xml_attr(xml_head[0], 'size')
|
||||
|
@ -2233,10 +2233,10 @@ class PmsConnect(object):
|
|||
}
|
||||
item_info.update(media_info)
|
||||
|
||||
childern_list.append(item_info)
|
||||
children_list.append(item_info)
|
||||
|
||||
output = {'library_count': library_count,
|
||||
'childern_list': childern_list
|
||||
'children_list': children_list
|
||||
}
|
||||
|
||||
return output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue