aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/globo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-04 17:12:42 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-04 17:12:42 +0600
commite7d34c03f200e178e9d6dfe4ae3f6856e382a4b9 (patch)
tree97e6f9f3a306d056243011c2564c7cd54b461223 /youtube_dl/extractor/globo.py
parent264cd00fff4f6d7063d43e1d476de46901bd9c5b (diff)
[globo] Force uploader id to be string
Diffstat (limited to 'youtube_dl/extractor/globo.py')
-rw-r--r--youtube_dl/extractor/globo.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/globo.py b/youtube_dl/extractor/globo.py
index 0337256ed..6c0fc54de 100644
--- a/youtube_dl/extractor/globo.py
+++ b/youtube_dl/extractor/globo.py
@@ -14,6 +14,7 @@ from ..utils import (
ExtractorError,
float_or_none,
int_or_none,
+ str_or_none,
)
@@ -34,7 +35,7 @@ class GloboIE(InfoExtractor):
'title': 'Mercedes-Benz GLA passa por teste de colisão na Europa',
'duration': 103.204,
'uploader': 'Globo.com',
- 'uploader_id': 265,
+ 'uploader_id': '265',
},
}, {
'url': 'http://globoplay.globo.com/v/4581987/',
@@ -45,7 +46,7 @@ class GloboIE(InfoExtractor):
'title': 'Acidentes de trânsito estão entre as maiores causas de queda de energia em SP',
'duration': 137.973,
'uploader': 'Rede Globo',
- 'uploader_id': 196,
+ 'uploader_id': '196',
},
}, {
'url': 'http://canalbrasil.globo.com/programas/sangue-latino/videos/3928201.html',
@@ -381,7 +382,7 @@ class GloboIE(InfoExtractor):
duration = float_or_none(video.get('duration'), 1000)
uploader = video.get('channel')
- uploader_id = video.get('channel_id')
+ uploader_id = str_or_none(video.get('channel_id'))
return {
'id': video_id,