[youtube] Add support for cleanvideosearch.com (Fixes #2734)
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 11 Apr 2014 11:51:47 +0000 (13:51 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 11 Apr 2014 11:53:05 +0000 (13:53 +0200)
test/test_all_urls.py
youtube_dl/extractor/youtube.py

index fb39c5082ac65e911a6b9676898a4e6f3412ae4c..d180f23cce0c417a0027b683c8190abc01975574 100644 (file)
@@ -49,6 +49,7 @@ class TestAllURLsMatching(unittest.TestCase):
         self.assertMatch('http://youtu.be/BaW_jenozKc', ['youtube'])
         self.assertMatch('http://www.youtube.com/v/BaW_jenozKc', ['youtube'])
         self.assertMatch('https://youtube.googleapis.com/v/BaW_jenozKc', ['youtube'])
+        self.assertMatch('http://www.cleanvideosearch.com/media/action/yt/watch?videoId=8v_4O44sfjM', ['youtube'])
 
     def test_youtube_channel_matching(self):
         assertChannel = lambda url: self.assertMatch(url, ['youtube:channel'])
index 334a61833e23cd81399d9da384837523e7e3dfdc..ac2d5db4e1b9d47d73ea1ed630a8616bbe77f110 100644 (file)
@@ -151,6 +151,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
                              )
                          ))
                          |youtu\.be/                                          # just youtu.be/xxxx
+                         |https?://(?:www\.)?cleanvideosearch\.com/media/action/yt/watch\?videoId=
                          )
                      )?                                                       # all until now is optional -> you can pass the naked ID
                      ([0-9A-Za-z_-]{11})                                      # here is it! the YouTube video ID