Skip to content

What to do about YouTube 'radiolists' #123

@natumbri

Description

@natumbri

In the scrAPI version, radiolists are not processed. They could be: the following regex - if inserted immediately after the playlists line - picks up radiolists:

                   r'(?:(?P<radiolist>RD.*?)\&)?'

In the bs4API version, radiolists are picked up with playlists, but with an 'id' that starts with 'RD' instead of 'PL'. To avoid processing them (or anything else that is returned that isn't a 'PL' playlist) the code includes this hack:

                    # don't append radiolist playlists
                    if str(item["id"]["playlistId"]).startswith("PL"):
                        items.append(item)

But what to do with a radiolist, once it is picked up?

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