Vastly improve sync speed for music
This commit is contained in:
parent
c0bef37dd5
commit
7f74dd93f4
1 changed files with 2 additions and 10 deletions
|
@ -115,17 +115,9 @@ class Threaded_Get_Metadata(Thread):
|
||||||
except (TypeError, IndexError, AttributeError):
|
except (TypeError, IndexError, AttributeError):
|
||||||
log.error('Could not get children for Plex id %s'
|
log.error('Could not get children for Plex id %s'
|
||||||
% item['itemId'])
|
% item['itemId'])
|
||||||
else:
|
|
||||||
item['children'] = []
|
item['children'] = []
|
||||||
for child in children_xml:
|
else:
|
||||||
child_xml = GetPlexMetadata(child.attrib['ratingKey'])
|
item['children'] = children_xml
|
||||||
try:
|
|
||||||
child_xml[0].attrib
|
|
||||||
except (TypeError, IndexError, AttributeError):
|
|
||||||
log.error('Could not get child for Plex id %s'
|
|
||||||
% child.attrib['ratingKey'])
|
|
||||||
else:
|
|
||||||
item['children'].append(child_xml[0])
|
|
||||||
|
|
||||||
# place item into out queue
|
# place item into out queue
|
||||||
out_queue.put(item)
|
out_queue.put(item)
|
||||||
|
|
Loading…
Add table
Reference in a new issue