projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[periscope] Support pscp.tv URLs in embedded frames
[youtube-dl]
/
youtube_dl
/
extractor
/
periscope.py
diff --git
a/youtube_dl/extractor/periscope.py
b/youtube_dl/extractor/periscope.py
index 1add6b84035041176f77f2bf454ca6bbfb8c7137..bfa12edc925d148ffecad3cdac4ff22ae321d70e 100644
(file)
--- 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(
@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')
if mobj:
return mobj.group('url')