diff --git a/libpytunes/Library.py b/libpytunes/Library.py index 67748d6..a405dba 100755 --- a/libpytunes/Library.py +++ b/libpytunes/Library.py @@ -25,7 +25,8 @@ def __init__(self, itunesxml, musicPathXML=None, musicPathSystem=None, filesOnly self.musicPathXML = musicPathXML self.musicPathSystem = musicPathSystem self.filesOnly = filesOnly - self.il = plistlib.readPlist(itunesxml) # Much better support of xml special characters + with open(itunesxml, 'rb') as f: + self.il = plistlib.load(f) self.songs = {} self.getSongs()