aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/periscope.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-07-11 15:35:19 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2017-07-11 15:35:19 +0800
commit7f176ac4775aed5e5a72d2f0c4b579d1b886d419 (patch)
tree0720bfb657b5b8a2d78a53a34d2a80ec9c20a196 /youtube_dl/extractor/periscope.py
parent2edfd745df4b7a764d7456e7536e47ef140de24d (diff)
[periscope] Support pscp.tv URLs in embedded frames
And fix a relevant twitter test
Diffstat (limited to 'youtube_dl/extractor/periscope.py')
-rw-r--r--youtube_dl/extractor/periscope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/periscope.py b/youtube_dl/extractor/periscope.py
index 1add6b840..bfa12edc9 100644
--- a/youtube_dl/extractor/periscope.py
+++ b/youtube_dl/extractor/periscope.py
@@ -49,7 +49,7 @@ class PeriscopeIE(PeriscopeBaseIE):
@staticmethod
def _extract_url(webpage):
mobj = re.search(
- r'<iframe[^>]+src=([\'"])(?P<url>(?:https?:)?//(?:www\.)?periscope\.tv/(?:(?!\1).)+)\1', webpage)
+ r'<iframe[^>]+src=([\'"])(?P<url>(?:https?:)?//(?:www\.)?(?:periscope|pscp)\.tv/(?:(?!\1).)+)\1', webpage)
if mobj:
return mobj.group('url')