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

Fix youtube playlist issues #401

Merged
merged 1 commit into from Jun 22, 2022
Merged

Fix youtube playlist issues #401

merged 1 commit into from Jun 22, 2022

Conversation

theychx
Copy link
Collaborator

@theychx theychx commented Jun 22, 2022

Originally reported in #376.
Casting of direct media urls seem to work again, so I updated the yt-dlp requirement.

fixes #367

@@ -166,7 +166,7 @@ def set_playlist_entry(self, number):

def _get_stream_preinfo(self, video_url):
try:
return self._ydl.sanitize_info(self._ydl.extract_info(video_url, process=False))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sanitize_info stringifies complex object references, which breaks youtube playlists (which are generators).

Copy link
Owner

@skorokithakis skorokithakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@theychx theychx merged commit 014ce1f into master Jun 22, 2022
@theychx theychx deleted the compat2 branch June 22, 2022 13:31
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

Successfully merging this pull request may close these issues.

Fix yt-dlp support
2 participants