Fix "invalid escape sequences" error on Python 3.6
[youtube-dl] / youtube_dl / extractor / screenjunkies.py
index f2af15f6b43ef5cd205db383cd01c283069dd05b..50aea65cb85528b3daeeceb345181760c62c6e34 100644 (file)
@@ -11,7 +11,7 @@ from ..utils import (
 
 
 class ScreenJunkiesIE(InfoExtractor):
-    _VALID_URL = r'http://www.screenjunkies.com/video/(?P<display_id>[^/]+?)(?:-(?P<id>\d+))?(?:[/?#&]|$)'
+    _VALID_URL = r'https?://(?:www\.)?screenjunkies\.com/video/(?P<display_id>[^/]+?)(?:-(?P<id>\d+))?(?:[/?#&]|$)'
     _TESTS = [{
         'url': 'http://www.screenjunkies.com/video/best-quentin-tarantino-movie-2841915',
         'md5': '5c2b686bec3d43de42bde9ec047536b0',
@@ -20,7 +20,7 @@ class ScreenJunkiesIE(InfoExtractor):
             'display_id': 'best-quentin-tarantino-movie',
             'ext': 'mp4',
             'title': 'Best Quentin Tarantino Movie',
-            'thumbnail': 're:^https?://.*\.jpg',
+            'thumbnail': r're:^https?://.*\.jpg',
             'duration': 3671,
             'age_limit': 13,
             'tags': list,
@@ -32,7 +32,7 @@ class ScreenJunkiesIE(InfoExtractor):
             'display_id': 'honest-trailers-the-dark-knight',
             'ext': 'mp4',
             'title': "Honest Trailers: 'The Dark Knight'",
-            'thumbnail': 're:^https?://.*\.jpg',
+            'thumbnail': r're:^https?://.*\.jpg',
             'age_limit': 10,
             'tags': list,
         },
@@ -44,7 +44,7 @@ class ScreenJunkiesIE(InfoExtractor):
             'display_id': 'knocking-dead-ep-1-the-show-so-far',
             'ext': 'mp4',
             'title': 'Knocking Dead Ep 1: State of The Dead Recap',
-            'thumbnail': 're:^https?://.*\.jpg',
+            'thumbnail': r're:^https?://.*\.jpg',
             'duration': 3307,
             'age_limit': 13,
             'tags': list,