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

Parsing playlists with Podcasts #5

Open
sineline opened this issue Jul 10, 2022 · 2 comments
Open

Parsing playlists with Podcasts #5

sineline opened this issue Jul 10, 2022 · 2 comments

Comments

@sineline
Copy link

sineline commented Jul 10, 2022

Hello,

First of all, thanks for sharing your work. It's great!

Trying to use the python code to ingest the Spotify API I found an issue due to having podcasts in some of my playlists. I've written a workaround that may be useful (yet not elegant).

In line 67, replace:
if len(json_items["items"]) > 0
with:

if json_items is not None:
    if len(json_items["items"]) > 0 and not any(i['track'].get('episode',False) for i in json_items["items"]):

and indent the following code.

Hope it helps!

@Ch291p
Copy link

Ch291p commented Jul 10, 2022

Uh

@sineline
Copy link
Author

Uh

Great contribution!😂

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

2 participants