check for none empty logo path
This commit is contained in:
parent
c627c34219
commit
9de0b3491b
@ -138,7 +138,8 @@ def overlay_filter(duration, advertisement, ad_last, ad_next):
|
|||||||
logo_filter = '[v]null'
|
logo_filter = '[v]null'
|
||||||
scale = ''
|
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 = []
|
logo_chain = []
|
||||||
if pre.logo_scale and \
|
if pre.logo_scale and \
|
||||||
re.match(r'\d+:-?\d+', pre.logo_scale):
|
re.match(r'\d+:-?\d+', pre.logo_scale):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user