From 2cf87495fa1500a5d59c43e5e78b77e0b5735cb1 Mon Sep 17 00:00:00 2001 From: BreadTube Date: Mon, 25 May 2026 00:26:25 +0900 Subject: [PATCH] Replace channel name spaces to hyphens --- breadtube_bot/bot.py | 1 + breadtube_bot/youtube_subscription.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/breadtube_bot/bot.py b/breadtube_bot/bot.py index ca0cc28..0f963d5 100644 --- a/breadtube_bot/bot.py +++ b/breadtube_bot/bot.py @@ -365,6 +365,7 @@ class Bot: break if selected_category is None: selected_category = category_ranges[-1][2] + self.logger.debug('Creating new channel: %s for id %s', subscription.name, subscription.channel_id) sub_channel = self.discord_manager.create_text_channel( self.guild_id, { 'name': subscription.name, diff --git a/breadtube_bot/youtube_subscription.py b/breadtube_bot/youtube_subscription.py index c51df43..d01a5eb 100644 --- a/breadtube_bot/youtube_subscription.py +++ b/breadtube_bot/youtube_subscription.py @@ -103,7 +103,8 @@ class SubscriptionHelper: name = values[0].decode() channel_id = values[1].decode() subscriptions[channel_id] = SubscriptionInfo( - name=SubscriptionInfo.discord_compatible_name(name), channel_id=channel_id, last_update=0) + name=SubscriptionInfo.discord_compatible_name( + name.replace(' ', '-')), channel_id=channel_id, last_update=0) return subscriptions @staticmethod