aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-07-01 15:49:34 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-07-01 15:49:34 +0200
commitdc2fc736911b5b8d769becd9227976e5caf267dc (patch)
tree959c959b2b9e327af89a0593eab1194a9268c220
parentc4808c6009aef29c908139ee529f4938b7df8190 (diff)
[youtube:truncated_url] Move test to extractor
-rw-r--r--test/test_all_urls.py3
-rw-r--r--youtube_dl/extractor/youtube.py3
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_all_urls.py b/test/test_all_urls.py
index 4b56137ce..2bc81f020 100644
--- a/test/test_all_urls.py
+++ b/test/test_all_urls.py
@@ -69,9 +69,6 @@ class TestAllURLsMatching(unittest.TestCase):
def test_youtube_show_matching(self):
self.assertMatch('http://www.youtube.com/show/airdisasters', ['youtube:show'])
- def test_youtube_truncated(self):
- self.assertMatch('http://www.youtube.com/watch?', ['youtube:truncated_url'])
-
def test_youtube_search_matching(self):
self.assertMatch('http://www.youtube.com/results?search_query=making+mustard', ['youtube:search_url'])
self.assertMatch('https://www.youtube.com/results?baz=bar&search_query=youtube-dl+test+video&filters=video&lclk=video', ['youtube:search_url'])
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index ec3024cbd..bf0fbc924 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1835,6 +1835,9 @@ class YoutubeTruncatedURLIE(InfoExtractor):
_TESTS = [{
'url': 'http://www.youtube.com/watch?annotation_id=annotation_3951667041',
'only_matching': True,
+ }, {
+ 'url': 'http://www.youtube.com/watch?',
+ 'only_matching': True,
}]
def _real_extract(self, url):