aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/twitch.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-22 18:18:21 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-22 18:18:21 +0100
commit78111136db788918452a80233e74fd4c506eb6f8 (patch)
tree78057bb0d23dc1713dcecc6c5aac4cb22dff6bc2 /youtube_dl/extractor/twitch.py
parent650ab5beebfa555383365602c914729249fad4c6 (diff)
[twitch] Move URL matching tests into extractor
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r--youtube_dl/extractor/twitch.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index 8866e5182..017eff742 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/youtube_dl/extractor/twitch.py
@@ -148,14 +148,17 @@ class TwitchChapterIE(TwitchItemBaseIE):
_ITEM_TYPE = 'chapter'
_ITEM_SHORTCUT = 'c'
- _TEST = {
+ _TESTS = [{
'url': 'http://www.twitch.tv/acracingleague/c/5285812',
'info_dict': {
'id': 'c5285812',
'title': 'ACRL Off Season - Sports Cars @ Nordschleife',
},
'playlist_mincount': 3,
- }
+ }, {
+ 'url': 'http://www.twitch.tv/tsm_theoddone/c/2349361',
+ 'only_matching': True,
+ }]
class TwitchVodIE(TwitchItemBaseIE):