Creating channel directory if it does not exist.

This commit is contained in:
Roland 2022-01-16 09:28:22 -07:00
parent ba59a2c75e
commit a70e049823
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -262,6 +262,8 @@ def get_or_create_channel(source_id: str = None, link: str = None, url: str = No
pass
channel_directory = get_media_directory() / f'videos/{name}'
if not channel_directory.is_dir():
channel_directory.mkdir(parents=True)
data = dict(
name=name,
url=url,