]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[kaltura] Improve uploader_id extraction
authorSergey M․ <dstftw@gmail.com>
Sat, 28 Jan 2017 10:50:56 +0000 (17:50 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 28 Jan 2017 10:50:56 +0000 (17:50 +0700)
youtube_dl/extractor/kaltura.py

index c0ddad6f9629b054f3e0064a9b3d60dc0f41dcf0..a57d913aff67d47b665582ee1a6e9656f9453278 100644 (file)
@@ -319,6 +319,6 @@ class KalturaIE(InfoExtractor):
             'thumbnail': info.get('thumbnailUrl'),
             'duration': info.get('duration'),
             'timestamp': info.get('createdAt'),
-            'uploader_id': info.get('userId'),
+            'uploader_id': info.get('userId') if info.get('userId') != 'None' else None,
             'view_count': info.get('plays'),
         }