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.
MTV.com extractor not working #4153
Comments
|
Here's another one: root@ubuntu:/home/user# youtube-dl -v -o /home/user/Desktop/video.mp4 "http://www.mtv.com/shows/ema/problem-break-free-live/1098546/video/#id=1731514" |
|
Hey guys: Regarding this video: For this RTMP source URL: This HTTP-equivalent URL works: http://viacommtvstrmfs.fplive.net/gsp.alias/mediabus/mtv.com/2014/11/03/04/26/5377987/5377987_5377987_20141103162628873_1280x720_3500_h32.mp4 Instead of the current youtube-dl HTTP-equivalent URL: I will do some more testing to verify that this holds true for other videos as well. |
|
I can confirm that this works perfectly, including for Gametrailers videos re. #4123 . Changing https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/mtv.py#L36 to |
|
@RealDeviil thanks for finding the solution! By the way, you should avoid running youtube-dl as the root user. It's only needed for updating. |
Am I doing something wrong? Here is the verbose output:
root@ubuntu:/home/user# youtube-dl -v -o /home/user/Desktop/video.mp4 "http://www.mtv.com/videos/french-montana/1096736/julius-caesar.jhtml"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-o', '/home/user/Desktop/video.mp4', 'http://www.mtv.com/videos/french-montana/1096736/julius-caesar.jhtml']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.09
[debug] Python version 2.7.6 - Linux-3.13.0-32-generic-i686-with-Ubuntu-14.04-trusty
[debug] exe versions: ffmpeg N-63893-
[debug] Proxy map: {}
[MTV] 1096736: Downloading webpage
[MTV] 1096736: Downloading info
[MTV] 1096736: Extracting information
[MTV] 1096736: Downloading video urls
[debug] Invoking downloader on u'http://mtvnmobile.vo.llnwd.net/kip0/_pxn=1+_pxI0=Ripod-h264+_pxL0=undefined+_pxM0=+_pxK=18639+_pxE=mp4/44620/mtvnorigin/gsp.alias/mediabus/mtv.com/2014/11/03/04/26/5377987/5377987_5377987_20141103162628873_1280x720_3500_h32.mp4'
ERROR: unable to download video data: HTTP Error 400: Bad Request
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1064, in process_info
success = dl(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1040, in dl
return fd.download(name, info)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 292, in download
return self.real_download(filename, info_dict)
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 64, in real_download
data = self.ydl.urlopen(request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1298, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
Thank you!