From a0ad9414252cd7c7db77ba366319158879829c46 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 9 Nov 2022 19:41:29 -0700 Subject: [PATCH] Getting all channel properties during session. --- modules/videos/downloader.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/videos/downloader.py b/modules/videos/downloader.py index 385de922..eefd1109 100755 --- a/modules/videos/downloader.py +++ b/modules/videos/downloader.py @@ -399,6 +399,8 @@ def get_or_create_channel(source_id: str = None, url: str = None, name: str = No """ try: channel = get_channel(source_id=source_id, url=url, name=name, return_dict=False) + # Get all properties while we have the session. + channel.dict() return channel except UnknownChannel: pass @@ -419,6 +421,8 @@ def get_or_create_channel(source_id: str = None, url: str = None, name: str = No channel = create_channel(data=data, return_dict=False) # Create the directory now that the channel is approved. channel_directory.mkdir(exist_ok=True) + # Get all properties while we have the session. + channel.dict() return channel