diff --git a/modules/videos/channel/api.py b/modules/videos/channel/api.py index 07d8169a..55f365ea 100644 --- a/modules/videos/channel/api.py +++ b/modules/videos/channel/api.py @@ -49,7 +49,10 @@ def channel_post(_: Request, body: schema.ChannelPostRequest): if not body.directory.is_dir() and body.mkdir: make_media_directory(body.directory) - channel = lib.create_channel(body.__dict__) # TODO don't use the dataclass as a dict. + bd_edit = body.__dict__ + bd_edit['name'] = bd_edit['name'].strip() + channel = lib.create_channel(bd_edit) # TODO don't use the dataclass as a dict. + print(channel) # Refresh the videos asynchronously from ..api import refresh_videos