Skip to content

Commit

Permalink
I replaced the deprecated method readPlist
Browse files Browse the repository at this point in the history
  • Loading branch information
sintc0nery committed Aug 8, 2022
1 parent 0c734f3 commit 26b3fdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libpytunes/Library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 26b3fdf

Please sign in to comment.