]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/younow.py
[cleanup] Fix infodict returned fields (#8906)
[yt-dlp.git] / yt_dlp / extractor / younow.py
index 18112ba3587d92bd3ce9e552058a531d20089259..b67cb2e178c3233547b4ed89a6cbccea7e8bdf0b 100644 (file)
@@ -6,6 +6,7 @@
     ExtractorError,
     format_field,
     int_or_none,
+    str_or_none,
     try_get,
 )
 
@@ -102,7 +103,7 @@ def _extract_moment(item, fatal=True):
         'timestamp': int_or_none(item.get('created')),
         'creator': uploader,
         'uploader': uploader,
-        'uploader_id': uploader_id,
+        'uploader_id': str_or_none(uploader_id),
         'uploader_url': uploader_url,
         'formats': [{
             'url': 'https://hls.younow.com/momentsplaylists/live/%s/%s.m3u8'
@@ -184,7 +185,7 @@ class YouNowMomentIE(InfoExtractor):
             'timestamp': 1490432040,
             'upload_date': '20170325',
             'uploader': 'GABO...',
-            'uploader_id': 35917228,
+            'uploader_id': '35917228',
         },
     }