autotako

Service to monitor moombox for completed livestream downloads to upload for distribution
git clone https://code.alwayswait.ing/autotako
Log | Files | Refs | README

commit 49474d301bbe075a5638983bb1f1fc951c541138
parent 061c125fda8388661ff58907db6d134a2c718ef1
Author: archiveanon <>
Date:   Sat, 21 Jun 2025 17:12:12 +0000

Make passing channel ID for channel config optional

It'll return None anyways.

Diffstat:
Msrc/autotako/config.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/autotako/config.py b/src/autotako/config.py @@ -44,7 +44,9 @@ class AppConfig(msgspec.Struct): webdav: WebDavConfig | None = None qbittorrent: QBittorrentConfig | None = None - def get_channel_config_by_id(self, channel_id: str) -> ChannelConfig | None: + def get_channel_config_by_id(self, channel_id: str | None) -> ChannelConfig | None: + if not channel_id: + return None for channel in self.channels: if channel.id == channel_id: return channel