projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b15c44c
)
[periscope] Add test for broadcast_id based URL
author
Sergey M․
<dstftw@gmail.com>
Wed, 4 Nov 2015 20:55:53 +0000
(
02:55
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 4 Nov 2015 20:55:53 +0000
(
02:55
+0600)
youtube_dl/extractor/periscope.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/periscope.py
b/youtube_dl/extractor/periscope.py
index 0f9d7576fae0a312a419428e551e0d4afdee756f..7621d9e993f5532f1373c0cf067c40eff0ac7d58 100644
(file)
--- a/
youtube_dl/extractor/periscope.py
+++ b/
youtube_dl/extractor/periscope.py
@@
-12,7
+12,7
@@
from ..utils import parse_iso8601
class PeriscopeIE(InfoExtractor):
IE_DESC = 'Periscope'
_VALID_URL = r'https?://(?:www\.)?periscope\.tv/w/(?P<id>[^/?#]+)'
class PeriscopeIE(InfoExtractor):
IE_DESC = 'Periscope'
_VALID_URL = r'https?://(?:www\.)?periscope\.tv/w/(?P<id>[^/?#]+)'
- _TEST
=
{
+ _TEST
S = [
{
'url': 'https://www.periscope.tv/w/aJUQnjY3MjA3ODF8NTYxMDIyMDl2zCg2pECBgwTqRpQuQD352EMPTKQjT4uqlM3cgWFA-g==',
'md5': '65b57957972e503fcbbaeed8f4fa04ca',
'info_dict': {
'url': 'https://www.periscope.tv/w/aJUQnjY3MjA3ODF8NTYxMDIyMDl2zCg2pECBgwTqRpQuQD352EMPTKQjT4uqlM3cgWFA-g==',
'md5': '65b57957972e503fcbbaeed8f4fa04ca',
'info_dict': {
@@
-25,7
+25,10
@@
class PeriscopeIE(InfoExtractor):
'uploader_id': '1465763',
},
'skip': 'Expires in 24 hours',
'uploader_id': '1465763',
},
'skip': 'Expires in 24 hours',
- }
+ }, {
+ 'url': 'https://www.periscope.tv/w/1ZkKzPbMVggJv',
+ 'only_matching': True,
+ }]
def _call_api(self, method, value):
attribute = 'token' if len(value) > 13 else 'broadcast_id'
def _call_api(self, method, value):
attribute = 'token' if len(value) > 13 else 'broadcast_id'