[periscope] Support pscp.tv URLs in embedded frames

And fix a relevant twitter test
This commit is contained in:
Yen Chi Hsuan 2017-07-11 15:35:19 +08:00
parent 2edfd745df
commit 7f176ac477
No known key found for this signature in database
GPG key ID: 7F902A182457CA23
3 changed files with 5 additions and 3 deletions

View file

@ -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')