Skip to content

Parsing playlists with Podcasts #5

@sineline

Description

@sineline

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions