From a4ae7fa891b6d5be72ab9b972221796a85a20237 Mon Sep 17 00:00:00 2001 From: Alex Nerten Date: Mon, 19 Oct 2015 15:24:59 +0300 Subject: [PATCH] Update plexupdate.py Fix #1649 --- beetsplug/plexupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/plexupdate.py b/beetsplug/plexupdate.py index 340bcdf4d..8cb1d375d 100644 --- a/beetsplug/plexupdate.py +++ b/beetsplug/plexupdate.py @@ -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')