]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/voicy.py
[cleanup] Misc cleanup
[yt-dlp.git] / yt_dlp / extractor / voicy.py
index 11ebe76e1301482ede0c330494bdac97f5f14200..37c7d5685fe155eb15dc42c645f3cc7f6cb3538f 100644 (file)
@@ -6,9 +6,10 @@
 from ..utils import (
     ExtractorError,
     smuggle_url,
+    str_or_none,
     traverse_obj,
-    unsmuggle_url,
     unified_strdate,
+    unsmuggle_url,
 )
 
 import itertools
@@ -25,9 +26,9 @@ def _extract_from_playlist_data(self, value):
             'id': voice_id,
             'title': compat_str(value.get('PlaylistName')),
             'uploader': value.get('SpeakerName'),
-            'uploader_id': compat_str(value.get('SpeakerId')),
+            'uploader_id': str_or_none(value.get('SpeakerId')),
             'channel': value.get('ChannelName'),
-            'channel_id': compat_str(value.get('ChannelId')),
+            'channel_id': str_or_none(value.get('ChannelId')),
             'upload_date': upload_date,
         }