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.
yahoo.py extractor should support videos outside the United States #3915
Comments
|
Thanks, fixed. |
|
Fixed in youtube-dl 2015.10.12. Type |
|
youtube-dl is updated in Archlinux and it works perfectly. Thanks a lot for the excellent work! |
I'd like to download the following video clip:
"https://tw.screen.yahoo.com/taipei-opinion-poll/%E9%81%B8%E6%83%85%E7%AB%99%E5%A0%B1-%E8%A1%97%E9%A0%AD%E6%B0%91%E8%AA%BF-%E5%8F%B0%E5%8C%97%E5%B8%82%E7%AF%87-102823042.html"
Short link: http://ppt.cc/3iGP
youtube-dl reports that the site is not supported. However, if I apply the following modifications to youtube_dl/extractor/yahoo.py, the video clip is downloaded fluently.
_VALID_URL = r'(?P<url>https?://(?:screen|movies)\.yahoo\.com/.*?-(?P<id>[0-9]+)(?:-[a-z]+)?\.html)'to
_VALID_URL = r'(?P<url>https?://.*(?:screen|movies)\.yahoo\.com/.*?-(?P<id>[0-9]+)(?:-[a-z]+)?\.html)'It's at line 18 of version 2014.10.05.2
to
They're in line 78~80 of version 2014.10.05.2
If part 2 is not done, YQL returns a "restricted" error.
This is just a quick fix. Further work includes finding a mapping from the URL to the region parameter in YQL.
Issue #2470 is similar to this one, but I think they're different.