Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 support #64

Open
mr-suw opened this issue Dec 16, 2020 · 3 comments
Open

Python3 support #64

mr-suw opened this issue Dec 16, 2020 · 3 comments

Comments

@mr-suw
Copy link

mr-suw commented Dec 16, 2020

I like libpytunes for exporting playlist files from music app. If you want to make this script useable for python 3, I had to modify Library.py as follows:

add function into Library class:

        with open(f, 'rb') as fp:
            plst = plistlib.load(fp)
        return plst

replace line 28 with:

    self.il = Library.plistLoad(itunesxml)  # Much better support of xml special characters
@NathanDotTo
Copy link
Collaborator

NathanDotTo commented Dec 16, 2020 via email

@coveritytest
Copy link

Thanks to e-skulk, I did a PR.

@wylek
Copy link

wylek commented Jun 5, 2021

Works great with 3.9, thanks @coveritytest!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants