aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ir90tv.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-07-25 18:39:01 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-07-25 18:39:01 +0800
commiteab7faa0c1e8511bc91c64347d0dffc28c94f101 (patch)
tree6fd7d8f74e694a858d165cd55112f82470841c3c /youtube_dl/extractor/ir90tv.py
parenta56c1e38c77bdeae38143b057b1698a5ffb2b914 (diff)
[ir90tv] Test (?:www\.)? part in _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/ir90tv.py')
-rw-r--r--youtube_dl/extractor/ir90tv.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ir90tv.py b/youtube_dl/extractor/ir90tv.py
index b79529b1b..880a6e32f 100644
--- a/youtube_dl/extractor/ir90tv.py
+++ b/youtube_dl/extractor/ir90tv.py
@@ -6,7 +6,7 @@ from .common import InfoExtractor
class Ir90TvIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?90tv\.ir/video/(?P<id>[0-9]+)/.*'
- _TEST = {
+ _TESTS = [{
'url': 'http://90tv.ir/video/95719/%D8%B4%D8%A7%DB%8C%D8%B9%D8%A7%D8%AA-%D9%86%D9%82%D9%84-%D9%88-%D8%A7%D9%86%D8%AA%D9%82%D8%A7%D9%84%D8%A7%D8%AA-%D9%85%D9%87%D9%85-%D9%81%D9%88%D8%AA%D8%A8%D8%A7%D9%84-%D8%A7%D8%B1%D9%88%D9%BE%D8%A7-940218',
'md5': '411dbd94891381960cb9e13daa47a869',
'info_dict': {
@@ -15,7 +15,10 @@ class Ir90TvIE(InfoExtractor):
'title': 'شایعات نقل و انتقالات مهم فوتبال اروپا 94/02/18',
'thumbnail': 're:^https?://.*\.jpg$',
}
- }
+ }, {
+ 'url': 'http://www.90tv.ir/video/95719/%D8%B4%D8%A7%DB%8C%D8%B9%D8%A7%D8%AA-%D9%86%D9%82%D9%84-%D9%88-%D8%A7%D9%86%D8%AA%D9%82%D8%A7%D9%84%D8%A7%D8%AA-%D9%85%D9%87%D9%85-%D9%81%D9%88%D8%AA%D8%A8%D8%A7%D9%84-%D8%A7%D8%B1%D9%88%D9%BE%D8%A7-940218',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)