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.
Source address is not working #12360
Comments
|
Do you have any network interface on this machine bound to |
|
It's my VPS.. and MY.PERSONAL.IP.ADDRESS is address of my computer. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 |
|
|
|
So, is it possible to run youtube-dl on website for each users, who wants to get video information? Because when I get video address from localhost, it works only for my IP address. I want to process it on VPS url and share this video address with another people. How to solve it? |
I have the same problem, did you have solved it ? |
|
How to solve it? me too. |
Source address is not working well. How to solve it? Thanks!
Run.py part:
....
ydl_opts = {
'format': 'bestvideo/best',
'source_address': 'MY.PERSONAL.IP.ADDRESS'
'logger': MyLogger(),
'progress_hooks': [my_hook],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
....
ERROR:
..4:/var/www/html/cgi-enabled/temp/youtube-dl# python run.py ERROR: Unable to download webpage: <urlopen error [Errno 99] Cannot assign reque sted address> (caused by URLError(error(99, 'Cannot assign requested address'),) )
Traceback (most recent call last):
File "run.py", line 28, in
video = ydl.extract_info('https://openload.co/embed/76iLgGro7Hw', download=F alse)
File "/var/www/html/cgi-enabled/temp/youtube-dl/youtube_dl/YoutubeDL.py", line 784, in extract_info
self.report_error(compat_str(e), e.format_traceback())
File "/var/www/html/cgi-enabled/temp/youtube-dl/youtube_dl/YoutubeDL.py", line 589, in report_error
self.trouble(error_message, tb)
File "/var/www/html/cgi-enabled/temp/youtube-dl/youtube_dl/YoutubeDL.py", line 559, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: Unable to download webpage: <urlopen erro r [Errno 99] Cannot assign requested address> (caused by URLError(error(99, 'Can not assign requested address'),))