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

What to do about YouTube 'radiolists' #123

Open
natumbri opened this issue Jan 18, 2020 · 0 comments
Open

What to do about YouTube 'radiolists' #123

natumbri opened this issue Jan 18, 2020 · 0 comments

Comments

@natumbri
Copy link
Owner

natumbri commented Jan 18, 2020

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?

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

1 participant