diff options
author | Remita Amine <remitamine@gmail.com> | 2016-06-30 19:52:32 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-06-30 19:52:32 +0100 |
commit | c9e538a3b1cde6ce140323a029c7b6f7386eb004 (patch) | |
tree | 427fc0d06acfe19b519b963943c69c84dde4d1ce /youtube_dl | |
parent | 76dad392f5bd82493777d8efc35bcfccf70fafec (diff) |
[ctvnews] use orderedSet, increase the number of items for playlists and use smaller bin list for test
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/ctvnews.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/youtube_dl/extractor/ctvnews.py b/youtube_dl/extractor/ctvnews.py index e14b30085..1023b6130 100644 --- a/youtube_dl/extractor/ctvnews.py +++ b/youtube_dl/extractor/ctvnews.py @@ -4,6 +4,7 @@ from __future__ import unicode_literals import re from .common import InfoExtractor +from ..utils import orderedSet class CTVNewsIE(InfoExtractor): @@ -27,12 +28,12 @@ class CTVNewsIE(InfoExtractor): }, 'playlist_mincount': 19, }, { - 'url': 'http://www.ctvnews.ca/video?binId=1.810401', + 'url': 'http://www.ctvnews.ca/video?binId=1.2876780', 'info_dict': { - 'id': '1.810401', + 'id': '1.2876780', }, - 'playlist_mincount': 91, + 'playlist_mincount': 100, }, { 'url': 'http://www.ctvnews.ca/1.810401', 'only_matching': True, @@ -57,8 +58,8 @@ class CTVNewsIE(InfoExtractor): else: webpage = self._download_webpage('http://www.ctvnews.ca/%s' % page_id, page_id, query={ 'ot': 'example.AjaxPageLayout.ot', - 'maxItemsPerPage': 20, + 'maxItemsPerPage': 1000000, }) - entries = [ninecninemedia_url_result(clip_id) for clip_id in set( + entries = [ninecninemedia_url_result(clip_id) for clip_id in orderedSet( re.findall(r'clip\.id\s*=\s*(\d+);', webpage))] return self.playlist_result(entries, page_id) |