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.
[Bet] Only part of the video is downloaded #13954
Comments
|
Listing 38:57 does not mean anything. Can you watch complete 38:57 in browser? Provide MSO credentials. |
|
Actually, there are multiple HLS playlists like nick.com, and youtube-dl does fetch the URL to all of them, but then proceeds to only download the first one: Full log with
|
|
How do you correctly download a single video which only seems to be available in multiple segments? The patch below works: diff --git a/youtube_dl/extractor/bet.py b/youtube_dl/extractor/bet.py
index d7ceaa85e..da4e17db9 100644
--- a/youtube_dl/extractor/bet.py
+++ b/youtube_dl/extractor/bet.py
@@ -66,15 +66,16 @@ class BetIE(MTVServicesInfoExtractor):
mgid = self._extract_mgid(webpage)
videos_info = self._get_videos_info(mgid)
- info_dict = videos_info['entries'][0]
+ entries = videos_info['entries']
- upload_date = unified_strdate(self._html_search_meta('date', webpage))
- description = self._html_search_meta('description', webpage)
+ for video in entries:
+ upload_date = unified_strdate(self._html_search_meta('date', webpage))
+ description = self._html_search_meta('description', webpage)
- info_dict.update({
- 'display_id': display_id,
- 'description': description,
- 'upload_date': upload_date,
- })
+ video.update({
+ 'display_id': display_id,
+ 'description': description,
+ 'upload_date': upload_date,
+ })
- return info_dict
+ return entriesBut it gives me this warning:
Also, the titles for the segments have random non-sequential IDs at the end with no way to tell the proper order without the user manually using autonumber, and IMO they shouldn't have to for downloading a single video. (Ideally, youtube-dl should merge all those to a single video file, but that would be more complicated to implement.) |
|
So, how do I properly handle this? |
|
This behavior is the same on BET, VH1, and I'm sure many more. You have to manually grab the (usually) As a sidenote, this workaround isn't too bad. I open the page with developer tools open and recording, then I click through and begin playing each segment in the video. Then, use the filter in developer tools to search for Hope this helps! |
|
Can this be fixed to work automatically? |
FastHub doesn't support issue templates, sorry. I'm using the latest version and have searched for existing issues.
Log:
Link: http://www.bet.com/video/a-very-soul-train-special/r-and-b-groups/2017/full-show-hosted-by-sevyn-streeter-and-luke-james.html
The resulting file is 5 minutes and 40 seconds, despite the site listing it as 38 minutes 57 seconds. TV provider account is normally required but youtube-dl bypasses this for MTVN network sites.