Trakt integration

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Trakt integration

Post by devster »

Trakt.tv is a reasonably popular way to keep track of watched and collected shows and movies.
The site has an official API and could be considered an alternative to MyEpisodes.
FileBot scripts could be a good way to integrate this functionality, by extending amc.groovy (probably wouldn't be too painful and it could work in a similar way to the push notifications) and possibly with a standalone script like the myepisodes one for maintenance.

Is there any interest for such a feature?
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Trakt integration

Post by rednoah »

I wonder if there isn't already a command-line solution that can easily be integrated via -exec.

e.g.

Code: Select all

-exec trakt-add --tvdbid {id} --episode {s00e00}
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: Trakt integration

Post by devster »

Not an official one, they provide tools for Kodi/Plex and various media centers but not terminal.
Not sure about others.
I only work in black and sometimes very, very dark grey. (Batman)
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: Trakt integration

Post by devster »

Good starting point.
The metadata they use for collection might require some adjustments though.
media_type, string, Set to digital, bluray, hddvd, dvd, vcd, vhs, betamax, or laserdisc.
resolution, string, Set to uhd_4k, hd_1080p, hd_1080i, hd_720p, sd_480p, sd_480i, sd_576p, or sd_576i.
hdr, string, Set to dolby_vision, hdr10, hdr10_plus, or hlg.
audio, string, Set to lpcm, mp3, aac, ogg, wma, dts, dts_ma, dts_hr, dts_x, auro_3d, dolby_digital, dolby_digital_plus, dolby_atmos, dolby_truehd, or dolby_prologic.
audio_channels, string, Set to 1.0, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.1.2, 5.1.4, 6.1, 7.1, 7.1.2, 7.1.4, 9.1, or 10.1
3d, boolean, Set true if in 3D.
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Trakt integration

Post by rednoah »

What would be the exact use case? What changes is FileBot expected to make?

e.g. Mark a processed episode as watched? Or there's other standard or custom marks for "processed" and the like?

e.g. Maybe manage some custom list of shows that have been processed in the past?

I don't use Trakt, so I don't know what it can do and what people use it for, and how it might benefit FileBot.


:?: The Plex metadata agent above seem to already be completely different from what the OP might be looking for, i.e. a MyEpisodes replacement that tracks what episodes have been processed.
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: Trakt integration

Post by devster »

rednoah wrote: 14 May 2019, 10:04 What would be the exact use case? What changes is FileBot expected to make?

e.g. Mark a processed episode as watched? Or there's other standard or custom marks for "processed" and the like?

e.g. Maybe manage some custom list of shows that have been processed in the past?

I don't use Trakt, so I don't know what it can do and what people use it for, and how it might benefit FileBot.


:?: The Plex metadata agent above seem to already be completely different from what the OP might be looking for, i.e. a MyEpisodes replacement that tracks what episodes have been processed.
Sorry for the misunderstanding, no changes from FileBot or scripts; this would not benefit FileBot directly, it would just be an additional script (similar to pushover/myepisodes), which I'm trying to write. It just needs to re-elaborate some fields provided by FileBot to conform to the restrictions of Trakt.

Objective is Download -> FileBot processing -> communication of new item added to the collection to Trakt.
The last steps takes the form of an API call, not too far from Pushover, with some additional information about files processed (media type, resolution, hdr...).

It could, potentially, be extended to also check which episodes are already in the collection, but I'll start with the first bit for now.
Trakt sync method allows updating items in place, for example if a new version of the same movie gets downloaded the metadata associated (720p vs 1080p) will get updated on Trakt, again, no actions from FileBot.
I only work in black and sometimes very, very dark grey. (Batman)
Post Reply