iamkroot / trakt-scrobbler

Scrobbler for trakt.tv that supports VLC, Plex, MPC-HC, and MPV.
https://github.com/iamkroot/trakt-scrobbler/wiki
GNU General Public License v2.0
450 stars 30 forks source link

[Request] Support Radarr and Sonarr #112

Open zero77 opened 3 years ago

zero77 commented 3 years ago

Can you please add support for both Radarr and Sonarr, thanks.

API

iamkroot commented 3 years ago

From what I can tell, both Radarr and Sonarr are tools for downloading the media files. Trakt Scrobbler works by monitoring your media player when you are watching something, and has nothing to do with downloads. What would it even mean to add support for Radarr or Sonarr?

zero77 commented 3 years ago

Both Radarr and Sonarr, track films or tv series and send a magnet link to your torrent client once it's available but, they continue to do this unless the film or tv episode is set to unmonitored. So it would be great if trakt-scrobbler was able to set the film or tv episode to unmonitored, so they are not downloaded again once they have been watched.

iamkroot commented 3 years ago

Hmm this seems like a very tangential feature request, since it has nothing to do with Trakt. You basically want to piggy-back on the existing machinery that monitors the media players and do something other than scrobbling the events. This was actually my original goal, where scrobbling to trakt would be just one of the many things supported. For one, support for scrobbling to other services could also be added. But I restricted the scope only to trakt scrobbling to make the project simple.

If I did have to implement this, I'm envisioning something like a general-purpose plugin-based system, where the monitors are responsible for generating the media events (just as they do now), and event handlers (plugins) consume these events. For example, one plugin would scrobble to trakt, another would talk to radarr/sonarr. This is obviously going to require quite a large modification in the codebase, so it seems pretty unlikely to be implemented in the near future. I'll think about it a bit more when I get some free time.

zero77 commented 3 years ago

At least in practice it's the same concept as what already happens with Trakt. But instead of setting the Show or film as Currently Watching it sets it to watched "unmonitored" in Sonarr or Radarr.