d657480eab
Use "local" instead of "all-local" by default because "all-local" requires admin privileges Other improvements: * Replace urllib with requests to make the management of the HTTP requests simpler (better error handling and easier implementation of complex requests in the future) * Refactor the functions used to build the HTTP request to improve maintainability (don't know if it makes sense to keep a single function for the "search" and the "list videos" request). * Use "urlencode" to generate the Kodi URL using a dict to make it more generic. * Create a function to log messages easily in Kodi's debug log. It will decrease the amount of duplicate code. * Fix some errors reported by pylint with regards to PEP 8 |
||
---|---|---|
.. | ||
resource.language.en_gb |