Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lapizistik opened this issue Jul 31, 2018 · 1 comment
Open

Comments

@Lapizistik
Copy link

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

@Xycl
Copy link
Owner

Xycl commented May 8, 2019

Sorry for the very late reply, but currently I'm very busy and didn't get the time to work on the addon.
I'll have a look at your issue soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants