script.simkl icon indicating copy to clipboard operation
script.simkl copied to clipboard

Offline mode

Open AzzieDev opened this issue 8 years ago • 8 comments

The scrobbler gives an error message when it fails because of a lack of internet connection.

It would be great if it could say that it failed and is also added to a queue of items that need to be scrobbled when the internet is reconnected. When it later tries and succeeds to scrobble or check in, it should send queue of other things to be scrobbled too.

AzzieDev avatar Feb 28 '17 08:02 AzzieDev

I fixed the error message. But the queue function is going to be implemented as 'syncing library'.

daviddavo avatar Mar 04 '17 20:03 daviddavo

Thats great! Though I hope the 'Syncing Library' keeps the queue if Kodi is closed and reopened.

AzzieDev avatar Mar 05 '17 06:03 AzzieDev

You can test it on e4c4cf5cedf59d1b2280b559f75532191517979a But I won't close this issue because it doesn't detect differences in time. I mean, If you mark as watched something in Kodi it will be marked as watched on Simkl. But if you then "unwatch" it on Simkl, it won't be unwatched on Kodi, so when you sync it will be marked as watched again on Simkl.

daviddavo avatar Mar 16 '17 18:03 daviddavo

That sounds okay for now, but not for the long run.

Can I have a link to a zip to install?

AzzieDev avatar Mar 17 '17 00:03 AzzieDev

One issue I realized... I delete watched episodes as soon as they are watched. Wouldn't these be removed from Kodi library, and therefore non synced?

AzzieDev avatar Mar 17 '17 05:03 AzzieDev

Yes, they need to stay in the library to be synced

daviddavo avatar Mar 17 '17 07:03 daviddavo

Update to this: It should ping simkl or google to check online status. Currently, if Kodi is loaded when no internet connection is available, and the internet is restored, no scrobbling will occur unless Kodi is restarted again.

AzzieDev avatar Jul 21 '17 19:07 AzzieDev

yes, because it tries to sign in on kodi`s start. We should add connection state checking and try to log in once more when connection will be available

ekleop avatar Jul 22 '17 09:07 ekleop