Skip to content

Scanning images broken for image without exif information (with fix) #24

@Lapizistik

Description

@Lapizistik

Scanning images stopped on one image which does not have a metadata block (exif, xmp, …) at all with error: kodi.log

I could fix this by changing lines 407 and 428 in scanpath.py from picentry['Image Rating'] to picentry.get('Image Rating'). I am not a Python person at all and have no experience in writing kodi plugind, therefore I am not sure this is the right way to do it:

Line 407: if picentry.get('Image Rating') is None or picentry['Image Rating'] == '' or picentry['Image Rating'] < '1':
Line 428: if picentry.get('Image Rating') is None or len(picentry['Image Rating']) == 0:

Thanks for your work!

Klaus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions