Browse Source

[youtube] Add support for cleanvideosearch.com (Fixes #2734)

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
b9c76aa1a9
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      test/test_all_urls.py
  2. +1
    -0
      youtube_dl/extractor/youtube.py

+ 1
- 0
test/test_all_urls.py View 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'])


+ 1
- 0
youtube_dl/extractor/youtube.py View 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


Loading…
Cancel
Save