projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e41b1f7
)
[globo] Fix error on some globo videos
author
kinetoskombi
<filipeamiranda@gmail.com>
Sat, 31 Jan 2015 22:07:43 +0000
(20:07 -0200)
committer
kinetoskombi
<filipeamiranda@gmail.com>
Sat, 31 Jan 2015 22:07:43 +0000
(20:07 -0200)
youtube_dl/extractor/globo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/globo.py
b/youtube_dl/extractor/globo.py
index 6949a57c70dd9b378c4879dad8afd4f3b18e558a..d936be384143acd1c376771707110787bd72c2ba 100644
(file)
--- a/
youtube_dl/extractor/globo.py
+++ b/
youtube_dl/extractor/globo.py
@@
-70,6
+70,19
@@
class GloboIE(InfoExtractor):
'like_count': int,
}
},
'like_count': int,
}
},
+ {
+ 'url': 'http://globotv.globo.com/canal-brasil/sangue-latino/t/todos-os-videos/v/ator-e-diretor-argentino-ricado-darin-fala-sobre-utopias-e-suas-perdas/3928201/',
+ 'md5': 'c1defca721ce25b2354e927d3e4b3dec',
+ 'info_dict': {
+ 'id': '3928201',
+ 'ext': 'mp4',
+ 'title': 'Ator e diretor argentino, Ricado DarĂn fala sobre utopias e suas perdas',
+ 'duration': 1472.906,
+ 'uploader': 'Canal Brasil',
+ 'uploader_id': 705,
+ 'like_count': int,
+ }
+ },
]
class MD5():
]
class MD5():
@@
-355,7
+368,9
@@
class GloboIE(InfoExtractor):
for resource in video['resources']:
resource_id = resource.get('_id')
for resource in video['resources']:
resource_id = resource.get('_id')
- if not resource_id:
+ resource_height = resource.get('height')
+
+ if not (resource_id or resource_height):
continue
security = self._download_json(
continue
security = self._download_json(
@@
-384,7
+399,7
@@
class GloboIE(InfoExtractor):
formats.append({
'url': '%s?h=%s&k=%s' % (resource['url'], signed_hash, 'flash'),
'format_id': resource_id,
formats.append({
'url': '%s?h=%s&k=%s' % (resource['url'], signed_hash, 'flash'),
'format_id': resource_id,
- 'height': resource
['height']
+ 'height': resource
_height
})
self._sort_formats(formats)
})
self._sort_formats(formats)