diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-12-23 07:12:26 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-12-23 07:12:46 +0530 |
commit | b69fd25c25f23a859aefae69a1cc4116896536b8 (patch) | |
tree | 78d6a3a4cd4108b5451ebc246b7f6400e22f38ec /yt_dlp/extractor/voicy.py | |
parent | e0fd95737d1a3c4a2bfb470c5408a396c8545ca5 (diff) | |
download | hypervideo-pre-b69fd25c25f23a859aefae69a1cc4116896536b8.tar.lz hypervideo-pre-b69fd25c25f23a859aefae69a1cc4116896536b8.tar.xz hypervideo-pre-b69fd25c25f23a859aefae69a1cc4116896536b8.zip |
[cleanup] Misc cleanup
Closes #1942 #1976 #2020 #2058 #1984
Diffstat (limited to 'yt_dlp/extractor/voicy.py')
-rw-r--r-- | yt_dlp/extractor/voicy.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yt_dlp/extractor/voicy.py b/yt_dlp/extractor/voicy.py index 11ebe76e1..37c7d5685 100644 --- a/yt_dlp/extractor/voicy.py +++ b/yt_dlp/extractor/voicy.py @@ -6,9 +6,10 @@ from ..compat import compat_str from ..utils import ( ExtractorError, smuggle_url, + str_or_none, traverse_obj, - unsmuggle_url, unified_strdate, + unsmuggle_url, ) import itertools @@ -25,9 +26,9 @@ class VoicyBaseIE(InfoExtractor): '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, } |