aliyss / syncribullet

Allows for syncing currently watched items from Stremio
https://56bca7d190fc-syncribullet.baby-beamup.club/
34 stars 0 forks source link

[Feature Request] Mark as watched only when x% is actually watched #6

Open trivarialthea opened 6 months ago

trivarialthea commented 6 months ago

Instead of marking a movie or episode of a TV show as watched instantly (as is done now), only mark it when a certain threshold is reached or when it is marked as "watched" in streamio.

The current implementation is frustrating because, for instance, if you have to leave in the middle of an episode and turn off your PC, it will already be marked as watched on SIMKL. Which can confuse someone in the long term.

Would it be possible?

aliyss commented 6 months ago

Right. So what I am doing right now is abusing the subtitle handler to check if a stream has been started.

Stremio provides no way to check start or end of an episode.

I have been playing around with the idea to access the stremio user library. So if it has been marked as watched by stremio, then it will go and mark it as watched on simkl. But this has it's own issues with the website basically needing a timer to recheck if an episode has been watched.

trivarialthea commented 6 months ago

Ah, so streamio does not directly support tracking this? How does the built-in trakt connection/addon work, then, is that like an exception that was made directly from streamio?

aliyss commented 6 months ago

You know I had a look at some trakt addon stuff... but as far as I know there is no direct support to what we are trying to achieve. The other stuff is most likely built in, because I saw some trakt stuff within stremio-core

aliyss commented 6 months ago

Ok, so I am working on some validation option. Basically you will have to then authenticate with Stremio. And the addon can then read your library.

I plan on doing it like this:

Now there is one issue, I would like to discuss... I'll anyways add an option for this, but want to discuss the default setting.

If the stremio auth fails for some reason or needs to be regenerated: Do you want it to not do anything or would you prefer it to sync on start again?

trivarialthea commented 6 months ago

I suppose if we take the BFU mentality of "Set it and forget it" the 2nd option where it would automatically sync again makes more sense.

The problem is, fresh install of streamio starts with nothing watched, therefore on initial install (if you want to achieve 2 way sync) is to sync SIMKL into streamio first. Or we could leave it as one way and only sync from streamio to SIMKL.

If not, there is a possibility that it would wipe the entire SIMKL list.

At least I think so, in theory...

aliyss commented 6 months ago

Ok... So to clarify, my add-on does not sync complete lists... It only syncs newly watched stuff. So there shouldn't be an issue either way when reinstalling stremio or starting new. Nothing is ever deleted, only added.

trivarialthea commented 6 months ago

Perfect