Merge branch 'master' of github.com:sampsyo/beets

This commit is contained in:
Adrian Sampson 2015-10-19 11:40:59 -07:00
commit 3503e6d1b2

View file

@ -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')