check for none empty logo path

This commit is contained in:
jonathan 2021-07-26 09:37:17 +02:00
parent c627c34219
commit 9de0b3491b

View File

@ -138,7 +138,8 @@ def overlay_filter(duration, advertisement, ad_last, ad_next):
logo_filter = '[v]null'
scale = ''
if pre.add_logo and Path(pre.logo).is_file() and not advertisement:
if pre.add_logo and pre.logo and Path(pre.logo).is_file() \
and not advertisement:
logo_chain = []
if pre.logo_scale and \
re.match(r'\d+:-?\d+', pre.logo_scale):