-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make every dictionary lookup use get() which doesn't raise an exception when missing. (If JSON returns something unexpected, or web scraping fails unexpectedly) We still have to look for each dictionary lookup what we should return if the lookup fails. By default it returns None, which sometimes is fine, but in some cases we better return an empty list or an empty dict. Some parts now will undoubtedly fail because of None values where it would have failed Kodi before. In some cases a missing title would be better replaced with e.g. 'N/A' or 'video #X' so the listing would still work. Either a complete review is necessary, or future brokeness will guide us to make better decisions ;-)
- Loading branch information
Showing
5 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters