aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tv2.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-03-21 21:36:32 +0600
committerSergey M․ <dstftw@gmail.com>2016-03-21 21:36:32 +0600
commit5886b38d73c54239c85c3e0d8e7c1585d1bbb7da (patch)
treef4136dedc489a0f559d92d9fe709ef6772f90c0e /youtube_dl/extractor/tv2.py
parent0cef27ad255b5cb994b1fa0e80a04bd09514925a (diff)
Add support for https for all extractors as preventive and future-proof measure
Diffstat (limited to 'youtube_dl/extractor/tv2.py')
-rw-r--r--youtube_dl/extractor/tv2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tv2.py b/youtube_dl/extractor/tv2.py
index 535d0d361..86bb7915d 100644
--- a/youtube_dl/extractor/tv2.py
+++ b/youtube_dl/extractor/tv2.py
@@ -14,7 +14,7 @@ from ..utils import (
class TV2IE(InfoExtractor):
- _VALID_URL = r'http://(?:www\.)?tv2\.no/v/(?P<id>\d+)'
+ _VALID_URL = r'https?://(?:www\.)?tv2\.no/v/(?P<id>\d+)'
_TEST = {
'url': 'http://www.tv2.no/v/916509/',
'info_dict': {
@@ -100,7 +100,7 @@ class TV2IE(InfoExtractor):
class TV2ArticleIE(InfoExtractor):
- _VALID_URL = r'http://(?:www\.)?tv2\.no/(?:a|\d{4}/\d{2}/\d{2}(/[^/]+)+)/(?P<id>\d+)'
+ _VALID_URL = r'https?://(?:www\.)?tv2\.no/(?:a|\d{4}/\d{2}/\d{2}(/[^/]+)+)/(?P<id>\d+)'
_TESTS = [{
'url': 'http://www.tv2.no/2015/05/16/nyheter/alesund/krim/pingvin/6930542',
'info_dict': {