Stremio / stremio-features

Post Feature requests in Issues here
88 stars 11 forks source link

Allow addons to track playback progress #824

Open aaalsaleh opened 3 weeks ago

aaalsaleh commented 3 weeks ago

Stremio Version All versions and platforms

Is your feature request related to a problem? Please describe. Currently it is not possible to track playback progress or watch status of Stremio media by addons. This limits addon developers from implementing scrobbling or recommendation addons.

Describe the solution you'd like Make it possible for addon developers to implement scrobbling by registering a progress addon type (like catalog, meta, stream). Once registered, Stremio should trigger the addon's endpoint with playback progress updates (every X minutes and/or on playback start/stop). For example it would call https://example.com/progresss/movie/ttXXXXXX/progress=48.json meaning a 48% progress for the movie with ID ttXXXXXX. This will make it possible to extend Stremio by addon developers with other scrobbling and recommendation services (and not just Trakt).

Describe alternatives you've considered Currently some addon developers register and listen for the subtitles events, and use it as a indication for playback. However, this is not very accurate for tracking progress and watch status.

Additional context If implemented, scrobbling and recommendation systems will become the responsibility of addon developers, and could be done more accurately.

sutulustus commented 6 days ago

I am also struggling with this. The implementation could be even simpler. We would not need to track the progress in our addon because stremio is already doing the trakt scrobbling for streams provided for their cinemeta catalogs.

The solution would be for them to implement some meta parameter that would indicate trakt_id to scrobble. We could do the trakt_id matching in out library.

https://github.com/Stremio/stremio-addon-sdk/issues/277