mirror of
https://github.com/beetbox/beets.git
synced 2026-02-20 14:21:34 +01:00
Merge branch 'master' of github.com:sampsyo/beets
This commit is contained in:
commit
3503e6d1b2
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