mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 03:52:51 +01:00
parent
0a7eb9e884
commit
a4ae7fa891
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def get_music_section(host, port, token, library_name):
|
|||
r = requests.get(url)
|
||||
|
||||
# Parse xml tree and extract music section key.
|
||||
tree = ET.fromstring(r.text)
|
||||
tree = ET.fromstring(r.content)
|
||||
for child in tree.findall('Directory'):
|
||||
if child.get('title') == library_name:
|
||||
return child.get('key')
|
||||
|
|
|
|||
Loading…
Reference in a new issue