mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 15:57:23 +00:00
[periscope] Relax _VALID_URL (Closes #7503)
This commit is contained in:
parent
0f72beb515
commit
0c59d02bdc
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,7 @@ from ..utils import parse_iso8601
|
||||||
|
|
||||||
class PeriscopeIE(InfoExtractor):
|
class PeriscopeIE(InfoExtractor):
|
||||||
IE_DESC = 'Periscope'
|
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/
|
# Alive example URLs can be found here http://onperiscope.com/
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.periscope.tv/w/aJUQnjY3MjA3ODF8NTYxMDIyMDl2zCg2pECBgwTqRpQuQD352EMPTKQjT4uqlM3cgWFA-g==',
|
'url': 'https://www.periscope.tv/w/aJUQnjY3MjA3ODF8NTYxMDIyMDl2zCg2pECBgwTqRpQuQD352EMPTKQjT4uqlM3cgWFA-g==',
|
||||||
|
@ -25,6 +25,9 @@ class PeriscopeIE(InfoExtractor):
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://www.periscope.tv/w/1ZkKzPbMVggJv',
|
'url': 'https://www.periscope.tv/w/1ZkKzPbMVggJv',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.periscope.tv/bastaakanoggano/1OdKrlkZZjOJX',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _call_api(self, method, value):
|
def _call_api(self, method, value):
|
||||||
|
|
Loading…
Reference in a new issue