Add support for https for all extractors as preventive and future-proof measure
[youtube-dl] / youtube_dl / extractor / ctsnews.py
index 0226f8036c81d97246c87f2308614d84202ae540..1622fc844a1b8d4794fc12694f03f37c00076f15 100644 (file)
@@ -6,8 +6,9 @@ from ..utils import parse_iso8601, ExtractorError
 
 
 class CtsNewsIE(InfoExtractor):
+    IE_DESC = '華視新聞'
     # https connection failed (Connection reset)
-    _VALID_URL = r'http://news\.cts\.com\.tw/[a-z]+/[a-z]+/\d+/(?P<id>\d+)\.html'
+    _VALID_URL = r'https?://news\.cts\.com\.tw/[a-z]+/[a-z]+/\d+/(?P<id>\d+)\.html'
     _TESTS = [{
         'url': 'http://news.cts.com.tw/cts/international/201501/201501291578109.html',
         'md5': 'a9875cb790252b08431186d741beaabe',