[mpora] Fix uploader name extraction
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 17 Jan 2014 02:59:42 +0000 (03:59 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 17 Jan 2014 02:59:42 +0000 (03:59 +0100)
youtube_dl/extractor/mpora.py

index 0836243ea6a7e5b6a74e74311e33e5fb56c6a788..6a8e2cc442c25327d9d91acebb47d4e109750731 100644 (file)
@@ -34,7 +34,7 @@ class MporaIE(InfoExtractor):
 
         data = json.loads(data_json)
 
-        uploader = data['info_overlay']['name']
+        uploader = data['info_overlay'].get('username')
         duration = data['video']['duration'] // 1000
         thumbnail = data['video']['encodings']['sd']['poster']
         title = data['info_overlay']['title']