Montellese / mediaimporter.emby

Media importer add-on for Kodi to import items from Emby servers into Kodi
GNU General Public License v2.0
12 stars 3 forks source link

Reduce number of authentication requests #11

Closed Montellese closed 4 years ago

Montellese commented 4 years ago

Right now the import part of the add-on is called "manually" on every action. Therefore the logic has no idea whether authentication has already succeeded or not and has to perform an authentication request for every execution.

This could be improved by only performing an authentication request if there is no access token / API key available. Furthermore the logic that performs the request could be extended to also perform the authentication request if a previous called failed due to missing authentication.