summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-15 00:20:17 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-15 00:20:17 +0600
commit0c59d02bdc86056957fcbebfec591ad53b7fcda3 (patch)
tree003df93a467b4a9f9a4ed17d2e1f768a51ec7907
parent0f72beb5153fbd4780a1c6b52e24acf5f0515874 (diff)
downloadyoutube-dl-0c59d02bdc86056957fcbebfec591ad53b7fcda3.tar.gz
youtube-dl-0c59d02bdc86056957fcbebfec591ad53b7fcda3.tar.xz
youtube-dl-0c59d02bdc86056957fcbebfec591ad53b7fcda3.zip
[periscope] Relax _VALID_URL (Closes #7503)
-rw-r--r--youtube_dl/extractor/periscope.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/periscope.py b/youtube_dl/extractor/periscope.py
index 459fa2c43..63cc764bb 100644
--- a/youtube_dl/extractor/periscope.py
+++ b/youtube_dl/extractor/periscope.py
@@ -7,7 +7,7 @@ from ..utils import parse_iso8601
 
 class PeriscopeIE(InfoExtractor):
     IE_DESC = 'Periscope'
-    _VALID_URL = r'https?://(?:www\.)?periscope\.tv/w/(?P<id>[^/?#]+)'
+    _VALID_URL = r'https?://(?:www\.)?periscope\.tv/[^/]+/(?P<id>[^/?#]+)'
     # Alive example URLs can be found here http://onperiscope.com/
     _TESTS = [{
         'url': 'https://www.periscope.tv/w/aJUQnjY3MjA3ODF8NTYxMDIyMDl2zCg2pECBgwTqRpQuQD352EMPTKQjT4uqlM3cgWFA-g==',
@@ -25,6 +25,9 @@ class PeriscopeIE(InfoExtractor):
     }, {
         'url': 'https://www.periscope.tv/w/1ZkKzPbMVggJv',
         'only_matching': True,
+    }, {
+        'url': 'https://www.periscope.tv/bastaakanoggano/1OdKrlkZZjOJX',
+        'only_matching': True,
     }]
 
     def _call_api(self, method, value):