aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tv2.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-03-21 21:22:37 +0600
committerSergey M․ <dstftw@gmail.com>2016-03-21 21:22:37 +0600
commit0cef27ad255b5cb994b1fa0e80a04bd09514925a (patch)
tree225530bf08227d04755aa4c86f41a07e43a22980 /youtube_dl/extractor/tv2.py
parent12af4beb3e28f986170ed00488b48e2e8bcd4e13 (diff)
Add missing r prefix for _VALID_URLs
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 1457e524e..535d0d361 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 = 'http://(?:www\.)?tv2\.no/v/(?P<id>\d+)'
+ _VALID_URL = r'http://(?: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 = 'http://(?:www\.)?tv2\.no/(?:a|\d{4}/\d{2}/\d{2}(/[^/]+)+)/(?P<id>\d+)'
+ _VALID_URL = r'http://(?: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': {