Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Generic] Add support for playlists if more than one video is found #5587
Comments
|
Here is one: http://www.mmafighting.com/2014/2/2/5370376/ufc-169-post-fight-show This page contains both youtube and ooyala videos, while youtube-dl detects the youtube video first, so the ooyala video is not downloaded at all. |
|
In the file: youtube-dl/youtube_dl/extractor/generic.py I removed some of the
I think it's because I removed too many I am posting this here because I would like your feedbacks on the strategy I have chosen to resolve this issue. |
|
@yan12125 I tried your URL (http://www.mmafighting.com/2014/2/2/5370376/ufc-169-post-fight-show). I was only able to download one of the videos (the one from Ooyala). I am not sure why yet. |
|
@yan12125 I just looked at the log on my terminal... It seems it found the Youtube video but it's not downloading it for some reason.
|
|
Removing |
|
"combine different URLs from different extractors in generic.py" - How? I am willing to do it but I am unsure of what you mean. |
|
For example, pages Brightcove videos yield an playlist: return {
'_type': 'playlist',
'title': video_title,
'id': video_id,
'entries': entries,
}And Wistia videos give a transparent URL: return {
'_type': 'url_transparent',
'url': embed_url,
'ie_key': 'Wistia',
'uploader': video_uploader,
}The overall result can be a playlist of them: (I'm not sure whether this approach can handle all possible cases or not) return {
'_type': 'playlist',
'entries': [{
'_type': 'playlist',
'title': video_title,
'id': video_id,
'entries': entries,
}, {
'_type': 'url_transparent',
'url': embed_url,
'ie_key': 'Wistia',
'uploader': video_uploader,
}]
} |
|
Let me try it out. It might not be perfect but over time we can correct the code. |
Treat a url as a playlist if more than one video url is found. This should be a thing for every url that is handled with the generic video extractor.