Browse Source

[kaltura] Improve uploader_id extraction

Sergey M․ 8 years ago
parent
commit
26e40542dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/kaltura.py

+ 1 - 1
youtube_dl/extractor/kaltura.py

@@ -319,6 +319,6 @@ class KalturaIE(InfoExtractor):
             'thumbnail': info.get('thumbnailUrl'),
             'thumbnail': info.get('thumbnailUrl'),
             'duration': info.get('duration'),
             'duration': info.get('duration'),
             'timestamp': info.get('createdAt'),
             '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'),
             'view_count': info.get('plays'),
         }
         }