mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
channel may be None.
This commit is contained in:
parent
6f58a2b563
commit
f305d7912f
1 changed files with 2 additions and 1 deletions
|
|
@ -439,7 +439,8 @@ def upsert_video(session: Session, video_path: pathlib.Path, channel: Channel =
|
|||
if channel and not str(video_path).startswith(str(channel.directory.path)):
|
||||
raise ValueError(f'Video path is not within its channel {video_path=} not in {channel.directory=}')
|
||||
|
||||
video.channel_id = channel.id
|
||||
if channel:
|
||||
video.channel_id = channel.id
|
||||
video.idempotency = idempotency
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue