Merge pull request 'Fix for showing dvd or cd when lack of front' (#16) from small-fix-add-list-of-medium-to-artwork into master

Reviewed-on: #16
This commit is contained in:
odecif 2022-10-28 17:14:15 +02:00
commit 1bf3c55e65

View File

@ -35,7 +35,7 @@ def game(predefinednfo=False, return_dict=False, skip_artwork=False):
i += 1 i += 1
if 'displayimage' not in nfo['game']: if 'displayimage' not in nfo['game']:
for art in nfo['game']['artwork']: for art in nfo['game']['artwork']:
if art['type'] == 'cd': if art['type'] in ['cd', 'dvd']:
nfo['game']['displayimage'] = reduceartcv2( nfo['game']['displayimage'] = reduceartcv2(
artpath+art['filename'], 'thumbnail') artpath+art['filename'], 'thumbnail')
else: else: