Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[imdb] fix crash on empty videoInfoTag #12373
Scraping with an invalid api key caused a crash after trying to scrape a few times.
When cleaning my database to re-scrape everything, I still had the old tmdb addon running, as there was an issue with the update. This caused kodi to crash after trying to scan for content a few times. As I catched the crash in the debugger I added some checks, as it seems in that case the videoInfoTag is not assigned. This should just prevent the crash when it tries to access the info tag.
Motivation and Context
This prevents the crash I catched in the debugger.
How Has This Been Tested?
I re-tested scraping a few times with the invalid key and it was not crashing any more. Noticed no issues.
Screenshots (if appropriate):
Types of change
Unsure, but since this most likely only happens when there's a massive failure (eg. due to invalid api key) i don't think raising the info dialog would make sense here.