]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[yahoo] Support https and -uploader URLs (Fixes #2701)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 4 Apr 2014 20:23:59 +0000 (22:23 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 4 Apr 2014 20:23:59 +0000 (22:23 +0200)
test/test_all_urls.py
youtube_dl/extractor/yahoo.py

index bea8c41fbf80e3171b47fab81f08e24c7ad35bda..577f6ac32c35997ac90e157a39e8cea228f2fa37 100644 (file)
@@ -157,5 +157,11 @@ class TestAllURLsMatching(unittest.TestCase):
             'http://thedailyshow.cc.com/guests/michael-lewis/3efna8/exclusive---michael-lewis-extended-interview-pt--3',
             ['ComedyCentralShows'])
 
+    def test_yahoo_https(self):
+        # https://github.com/rg3/youtube-dl/issues/2701
+        self.assertMatch(
+            'https://screen.yahoo.com/smartwatches-latest-wearable-gadgets-163745379-cbs.html',
+            ['Yahoo'])
+
 if __name__ == '__main__':
     unittest.main()
index c1de172b16861f3055640bf7e85b57c82eaa8b77..e2cf1ae5603c6ff32480eb0db07ece09b7ff6baf 100644 (file)
@@ -15,7 +15,7 @@ from ..utils import (
 
 class YahooIE(InfoExtractor):
     IE_DESC = 'Yahoo screen'
-    _VALID_URL = r'http://screen\.yahoo\.com/.*?-(?P<id>\d*?)\.html'
+    _VALID_URL = r'https?://screen\.yahoo\.com/.*?-(?P<id>[0-9]+)(?:-[a-z]+)?\.html'
     _TESTS = [
         {
             'url': 'http://screen.yahoo.com/julian-smith-travis-legg-watch-214727115.html',