Simplify logical expression using De Morgan idents

This commit is contained in:
Brian Pepple 2020-09-27 11:45:24 -04:00 committed by Odd Stråbø
parent bfc18e7d4b
commit 785d0d4844

View file

@ -314,7 +314,7 @@ class Actions(object):
obj['Artwork']['Backdrop'] = obj['Artwork']['Backdrop'] or []
obj['Artwork']['Thumb'] = obj['Artwork']['Thumb'] or ""
if not intro and not obj['Type'] == 'Trailer':
if not intro and obj['Type'] != 'Trailer':
obj['Artwork']['Primary'] = obj['Artwork']['Primary'] \
or "special://home/addons/plugin.video.jellyfin/resources/icon.png"
else: