projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[nowness] update tests
[youtube-dl]
/
youtube_dl
/
extractor
/
breakcom.py
diff --git
a/youtube_dl/extractor/breakcom.py
b/youtube_dl/extractor/breakcom.py
index 2c0e5eea2e0285ffce1b89340e9ae8894260f866..725859b4d2d554df91ff4793a2b3d245f02c8996 100644
(file)
--- a/
youtube_dl/extractor/breakcom.py
+++ b/
youtube_dl/extractor/breakcom.py
@@
-11,14
+11,14
@@
from ..utils import (
class BreakIE(InfoExtractor):
class BreakIE(InfoExtractor):
- _VALID_URL = r'http://(?:www\.)?break\.com/video/(?:[^/]+/)*.+-(?P<id>\d+)'
+ _VALID_URL = r'http
s?
://(?:www\.)?break\.com/video/(?:[^/]+/)*.+-(?P<id>\d+)'
_TESTS = [{
'url': 'http://www.break.com/video/when-girls-act-like-guys-2468056',
_TESTS = [{
'url': 'http://www.break.com/video/when-girls-act-like-guys-2468056',
- 'md5': '33aa4ff477ecd124d18d7b5d23b87ce5',
'info_dict': {
'id': '2468056',
'ext': 'mp4',
'title': 'When Girls Act Like D-Bags',
'info_dict': {
'id': '2468056',
'ext': 'mp4',
'title': 'When Girls Act Like D-Bags',
+ 'age_limit': 13,
}
}, {
'url': 'http://www.break.com/video/ugc/baby-flex-2773063',
}
}, {
'url': 'http://www.break.com/video/ugc/baby-flex-2773063',
@@
-42,7
+42,7
@@
class BreakIE(InfoExtractor):
'tbr': media['bitRate'],
'width': media['width'],
'height': media['height'],
'tbr': media['bitRate'],
'width': media['width'],
'height': media['height'],
- } for media in info['media']]
+ } for media in info['media']
if media.get('mediaPurpose') == 'play'
]
if not formats:
formats.append({
if not formats:
formats.append({