diff --git a/src/ytdl_sub/downloaders/youtube/channel.py b/src/ytdl_sub/downloaders/youtube/channel.py index 701506b5..d53b082a 100644 --- a/src/ytdl_sub/downloaders/youtube/channel.py +++ b/src/ytdl_sub/downloaders/youtube/channel.py @@ -134,7 +134,7 @@ class YoutubeChannelDownloader(YoutubeDownloader[YoutubeChannelDownloaderOptions .. code-block:: yaml overrides: - source_uploader: # The channel's name + source_uploader: # The channel's name. NOTE: sometimes it's empty, use with caution source_title: # The channel's name source_description: # The channel's description """ @@ -197,7 +197,7 @@ class YoutubeChannelDownloader(YoutubeDownloader[YoutubeChannelDownloaderOptions self.overrides.add_override_variables( variables_to_add={ - "source_uploader": self.channel.kwargs("uploader"), + "source_uploader": self.channel.kwargs_get("uploader", "__failed_to_scrape__"), "source_title": self.channel.kwargs("title"), "source_description": self.channel.kwargs_get("description", ""), } diff --git a/src/ytdl_sub/downloaders/youtube/playlist.py b/src/ytdl_sub/downloaders/youtube/playlist.py index 2cd81e31..76843307 100644 --- a/src/ytdl_sub/downloaders/youtube/playlist.py +++ b/src/ytdl_sub/downloaders/youtube/playlist.py @@ -73,7 +73,7 @@ class YoutubePlaylistDownloader( .. code-block:: yaml overrides: - source_uploader: # The playlist's owner's channel name + source_uploader: # The playlist's owner's channel name. NOTE: sometimes it's empty, use with caution source_title: # The playlist's title source_description: # The playlist's description """ @@ -100,7 +100,7 @@ class YoutubePlaylistDownloader( self.overrides.add_override_variables( variables_to_add={ "source_title": playlist["title"], - "source_uploader": playlist["uploader"], + "source_uploader": playlist.get("uploader", "__failed_to_scrape__"), "source_description": playlist.get("description", ""), } )