diff --git a/modules/videos/channel/lib.py b/modules/videos/channel/lib.py index 1390ea1a..64e329ec 100644 --- a/modules/videos/channel/lib.py +++ b/modules/videos/channel/lib.py @@ -24,7 +24,8 @@ async def get_minimal_channels() -> List[dict]: # Get all channels, even if they don't have videos. stmt = ''' SELECT - c.id, name, link, directory, url, download_frequency, info_date + c.id, name, link, directory, url, download_frequency, info_date, + (select next_download from download d where d.url=c.url) AS next_download FROM channel AS c ORDER BY LOWER(name)