Getting all channel properties during session.

This commit is contained in:
Roland 2022-11-09 19:41:29 -07:00
parent be852e3d46
commit a0ad941425
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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