From 26b3fdf69fa6c6570acf39aec9b07d953e448f0a Mon Sep 17 00:00:00 2001 From: SCervino Date: Mon, 8 Aug 2022 18:01:05 +0200 Subject: [PATCH] I replaced the deprecated method readPlist --- libpytunes/Library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()