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.
[dailymotion] Add support for playerV5 #6151
Comments
|
Post *.dump files you'll get when running with |
|
As per your instructions i have run youtube-dl --write-pages -f standard http://www.dailymotion.com/video/x2wqp9r and its created two *,dump files and I have posted the files below. x2wqp9r_https_-_www.dailymotion.com_embed_video_x2wqp9r.dumpcat x2wqp9r_https_-_www.dailymotion.com_embed_video_x2wqp9r.dump
x2wqp9r_https_-_www.dailymotion.com_video_x2wqp9r.dump
|
|
Use code blocks markdown next time. |
|
Dear dstftw, I am facing same issue, kindly resolve this issue ASAP. |
|
unable to download dailymotion.com videos |
|
Dear concern, I have updated to 2015.07.07 but still issue is persist. |
|
use a proxy!
|
|
why i use proxy to access youtube-dl ???? |
|
The issue appears to be caused because Dailymotion now serves different embed pages to Pakistani visitors, which lacks "info" JSON that youtube-dl uses to extract information about the video. I am not familiar with Python or youtube-dl's code, but after a few hours of learning the basics and trial and error, I was able to modify dailymotion.py enough that it now works for Pakistani users (tested). It should also work for everyone else because the older codes are enclosed in relevant if statements, and it would be great if someone can confirm. Please do test and improve: https://github.com/Asadullah-Ahmad/youtube-dl/blob/master/youtube_dl/extractor/dailymotion.py It issues two warnings about not being able to extract "video info", which I think are caused because I had to pass |
|
with proxy its not working |
|
asifkhan007: If you have the master tarball from the this git: Extract it, find the dailymotion.py file in ..../youtube-dl-master/youtube_dl/extractor/ and replace it with the one I linked to. Then make sure you have the required libraries to compile on your distro, which are python, make, pandoc, zip and nosetests, and then just type Alternatively, if you are willing to run the compiled file by me, download the binary from https://github.com/Asadullah-Ahmad/youtube-dl/raw/master/youtube-dl and run it. You will probably have to make it executable by editing its properties, or by entering |
|
Thanks its working now |
|
youtube-dl -v http://www.dailymotion.com/video/x4bxbwr During handling of the above exception, another exception occurred: Traceback (most recent call last): |
|
@renatovelasquez This video is protected by a password. However passwords are not supported yet. Please open a new issue for that. |
[root@DM2 squid]# python /cache3/dm/youtube-dl --verbose -f standard http://www.dailymotion.com/video/x2kzqa1
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'-f', u'standard', u'http://www.dailymotion.com/video/x2kzqa1']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.07.04
[debug] Python version 2.6.6 - Linux-2.6.32-504.16.2.el6.centos.plus.x86_64-x86_64-with-centos-6.6-Final
[debug] exe versions: none
[debug] Proxy map: {}
[dailymotion] x2kzqa1: Downloading webpage
[dailymotion] x2kzqa1: Extracting information
[dailymotion] x2kzqa1: Downloading embed page
ERROR: Unable to extract video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/cache3/dm/youtube-dl/youtube_dl/YoutubeDL.py", line 654, in extract_info
ie_result = ie.extract(url)
File "/cache3/dm/youtube-dl/youtube_dl/extractor/common.py", line 273, in extract
return self._real_extract(url)
File "/cache3/dm/youtube-dl/youtube_dl/extractor/dailymotion.py", line 119, in _real_extract
'video info', flags=re.MULTILINE)
File "/cache3/dm/youtube-dl/youtube_dl/extractor/common.py", line 555, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[root@DM2 squid]# python /cache3/dm/youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.07.04
[debug] Python version 2.6.6 - Linux-2.6.32-504.16.2.el6.centos.plus.x86_64-x86_64-with-centos-6.6-Final
[debug] exe versions: none
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.