[periscope] Support pscp.tv URLs in embedded frames
And fix a relevant twitter test
This commit is contained in:
parent
2edfd745df
commit
7f176ac477
3 changed files with 5 additions and 3 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue