mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Creating channel directory if it does not exist.
This commit is contained in:
parent
ba59a2c75e
commit
a70e049823
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue