generator / tautulli2trakt Goto Github PK
View Code? Open in Web Editor NEWA companion script for Tautulli to automatically scrobble media to Trakt.tv
A companion script for Tautulli to automatically scrobble media to Trakt.tv
Hey.
Great job.
Since trakt-scrobbler already lost most of it's functionality (thanks plex),
i'm wondering if you have any plans for "two-way-sync" aswell as creating/syncing Playlists on Plex etc.
thanks
Only movies are getting scrobbled and synced to Trakt. When viewing the Tautulli logs, it seems that both the TVDB and IMDB IDs are not being included in the script notifier when viewing a TV show:
Tautulli Notifiers :: Full script is: [u'/Applications/Tautulli/scripts/tautulli2trakt.sh', '-m', 'episode', '-s', 'The Movies That Made Us', '-M', 'The Movies That Made Us - Ghostbusters', '-y', '2019', '-t', '', '-i', '', '-S', '1', '-E', '3', '-P', '83', '-a', 'stop']
Hi,
Tautulli doesn't seem to know what version of Plex I'm running (on Nvidia Shield). Im on public channel. I tried both options "server settings" "public channel". I get other notifications just fine. Just not the one when new plex update is available . Is this a problem with Server running on Shield? Tautulli is on the same network as Plex and all other notifications work just fine.
The "Release" Combobox in Plex Media Server options is empty.
In the logfiles there are not errors.
Thanks
I have a feeling this is something I did wrong, but who knows. I walked through the configuration twice now, making sure I removed everything in between each step.
When I watch something and it completes, I'm getting an error in my Tautulli logs and nothing ever shows up on trakt.tv for me.
I've got a custom condition on the script settings that looks if a user is <user 1> or is <user 2> but that looks like it's running okay in the logs.
It's really the Script error: grep: unrecognized option: P
that comes up consistently.
Thanks!
Hello,
Tautulli and the script are installed on my QNAP NAS.
Here's what I get in the LOG each time the WATCHED action is triggered:
2019-11-19 21:09:38 - DEBUG :: Thread-105 : Tautulli ActivityHandler :: Session 14 watched.
2019-11-19 21:09:38 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Checking custom notification conditions for notifier_id 3.
2019-11-19 21:09:38 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: {1} username | is | 'X' > 'X' > True
2019-11-19 21:09:38 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Condition logic [blank]: {1} > True
2019-11-19 21:09:38 - DEBUG :: Thread-2 : Tautulli NotificationHandler :: Custom conditions evaluated to 'True'. Conditions: [True].
2019-11-19 21:09:38 - INFO :: Thread-1 : Tautulli NotificationHandler :: Preparing notification for notifier_id 3.
2019-11-19 21:09:38 - DEBUG :: Thread-1 : Tautulli Notifiers :: Trying to run notify script, action: watched, arguments: [u'-m', u'episode', u'-s', u'Dragon Ball Super', u'-M', u'Dragon Ball Super - Majestueux ! L\u2019av\xe8nement du dieu de la destruction, Toppo !!', u'-y', u'2018', u'-t', u'295068', u'-i', '', u'-S', '5', u'-E', '49', u'-P', u'100', u'-a', u'stop']
2019-11-19 21:09:38 - DEBUG :: Thread-1 : Tautulli Notifiers :: Full script is: [u'/root/tautulli2trakt.sh', '-m', 'episode', '-s', 'Dragon Ball Super', '-M', 'Dragon Ball Super - Majestueux ! L\xe2\x80\x99av\xc3\xa8nement du dieu de la destruction, Toppo !!', '-y', '2018', '-t', '295068', '-i', '', '-S', '5', '-E', '49', '-P', '100', '-a', 'stop']
2019-11-19 21:09:38 - DEBUG :: Thread-1 : Tautulli Notifiers :: Executing script in a new thread.
2019-11-19 21:09:38 - DEBUG :: Thread-188 : Tautulli Notifiers :: Subprocess returned with status code 77.
2019-11-19 21:09:38 - INFO :: Thread-188 : Tautulli Notifiers :: Script notification sent.
2019-11-19 21:11:44 - DEBUG :: Thread-105 : Tautulli ActivityHandler :: Session 14 stopped.
2019-11-19 21:11:44 - DEBUG :: Thread-105 : Tautulli ActivityProcessor :: Fetching metadata for item ratingKey 2910
2019-11-19 21:11:44 - DEBUG :: Thread-105 : Tautulli ActivityHandler :: Removing sessionKey 14 ratingKey 2910 from session queue
Everything seems to work as it should, but the notification is not supported in TRAKT.TV
What does the "status code 77" mean?
Do you have an idea ?
How does this know what user to mark things for?
If you plan to add more to this cool tool, would it be possible to sync history from tautulli to trakt?
I had to revert to an old database because of a corruption that was happening for 2 months. My tautulli logs are still there but both plex and trakt end before 2 months ago so I have to mark everything as watched manually.
Having a tool that could sync from Tautulli to Trakt from the history would be incredibly useful. It could even get the ones that Plex missed or before the trakt scrobble tool was added.
Self-check write/read access of files .conf
and .data
Replace jq
with an shell alternative to make it Docker friendly
As per the Trakt documentation: https://trakt.docs.apiary.io/#reference/scrobble/stop
My Tautulli was set as "mark 75% as watched", so the last call to the script was made at 75%. This does not register with Trakt as a scrobble, resulting in missing items in my Trakt history, even though I watched the episode to the end.
So either Tautulli does not generate a "stream stopped" event at the end of my episodes (watching through Kodi + Plex plugin), or there should be a notice somewhere to not configure Tautulli to generate the "watched" event on lower than 80%, since that will not result in a scrobble.
The script is generating the following error logged in Tautulli when executed:
Tautulli Notifiers :: Script error:
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
/Applications/Tautulli/scripts/tautulli2trakt.sh: line 280: [: -le: unary operator expected
Add new items to a user's collection.
Docs: https://trakt.docs.apiary.io/reference/sync/add-to-collection
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.