mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-08-27 18:15:14 +02:00
[periscope] Add test for broadcast_id based URL
This commit is contained in:
parent
b15c44cd36
commit
2549e113b8
@ -12,7 +12,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/w/(?P<id>[^/?#]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://www.periscope.tv/w/aJUQnjY3MjA3ODF8NTYxMDIyMDl2zCg2pECBgwTqRpQuQD352EMPTKQjT4uqlM3cgWFA-g==',
|
'url': 'https://www.periscope.tv/w/aJUQnjY3MjA3ODF8NTYxMDIyMDl2zCg2pECBgwTqRpQuQD352EMPTKQjT4uqlM3cgWFA-g==',
|
||||||
'md5': '65b57957972e503fcbbaeed8f4fa04ca',
|
'md5': '65b57957972e503fcbbaeed8f4fa04ca',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -25,7 +25,10 @@ class PeriscopeIE(InfoExtractor):
|
|||||||
'uploader_id': '1465763',
|
'uploader_id': '1465763',
|
||||||
},
|
},
|
||||||
'skip': 'Expires in 24 hours',
|
'skip': 'Expires in 24 hours',
|
||||||
}
|
}, {
|
||||||
|
'url': 'https://www.periscope.tv/w/1ZkKzPbMVggJv',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
|
||||||
def _call_api(self, method, value):
|
def _call_api(self, method, value):
|
||||||
attribute = 'token' if len(value) > 13 else 'broadcast_id'
|
attribute = 'token' if len(value) > 13 else 'broadcast_id'
|
||||||
|
Loading…
Reference in New Issue
Block a user