smirgol / plugin.video.crunchyroll

Watch videos from the anime platform Crunchyroll.com on Kodi
GNU Affero General Public License v3.0
45 stars 11 forks source link

Use kodi database for progress when sync with crunchyroll is disabled #48

Open smirgol opened 4 months ago

smirgol commented 4 months ago

When Synchronize play time progress is disabled in the settings, everything will show as unwatched, as that information is retrieved from crunchyroll only and only if the setting is enabled.

Use Kodi's internal database to store and fetch the information what has been viewed and what can be resumed and use that in case the setting is disabled. (always store, fetch only if setting is disabled).

smirgol commented 4 months ago

Actually sync option affects only the updating from the app to Crunchyroll. The progress is always fetched from Crunchyroll, where it is called playhead. If the playtime isn't updated to Crunchyroll, within the app everything will show as unwatched, as Crunchyroll returns a playhead of 0 for everything (given you have not watched something on CR itself).

The idea is to have some kind of offline-mode, where progress is only stored and retrieved with/from Kodi. For whatever that might be useful... :)