mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 20:43:41 +01:00
commit
b4ecef9d47
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