Skip to content

frugglehost/TautulliBatch2Trakt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Tautulli Batch 2 Trakt

Table of Contents

Description:

Powershell script to send Tautulli notificaions for multiple users to Trakt.

Getting Started

Prerequisites

  • Windows
  • PowerShell 3 and higher

Installation

CD "<Enter Install Path>"
Invoke-WebRequest https://raw.githubusercontent.com/frugglehost/TautulliBatch2Trakt/master/TautulliBatch2Trakt.ps1 -OutFile TautulliBatch2Trakt.ps1
ICACLS "TautulliBatch2Trakt.ps1" /grant:r "Everyone:(F)" /C

Script Setup

Create a new application https://trakt.tv/oauth/applications
Add the follow settings:

Name: TautulliBatch2Trakt
Redirect uri: urn:ietf:wg:oauth:2.0:oob
Permissions: /scrobble

Save the Client ID and Client Secret

Run script for initial setup and follow instructions

CD "<Enter Install Path>"
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
# Press "Yes", Once the powershell window is closed the settings will revert back.
.\TautulliBatch2Trakt.ps1 -setup

The script will automaticly copy the code for you to enter into Trakt.

Tautulli

Add Script

  • Settings > Notification Agents > Add a Notification Agent > Script

Script Settings

Configuration

  • Script Folder
    • <script path location>
  • Script File
    • TautulliBatch2Trakt.ps1

Triggers

  • Playback Start
  • Playback Stop
  • Playback Pause
  • Playback Resume
  • Watched

Arguments

  • Playback Start / Playback Resume :
    -m {media_type} -s "{show_name}" -M "{title}" -y "{year}" -t "{thetvdb_id}" -i "{imdb_id}" -S {season_num} -E {episode_num} -P {progress_percent} -a start -PlexUser {username}

  • Playback Stop / Watched :
    -m {media_type} -s "{show_name}" -M "{title}" -y "{year}" -t "{thetvdb_id}" -i "{imdb_id}" -S {season_num} -E {episode_num} -P {progress_percent} -a stop -PlexUser {username}

  • Playback Pause :
    -m {media_type} -s "{show_name}" -M "{title}" -y "{year}" -t "{thetvdb_id}" -i "{imdb_id}" -S {season_num} -E {episode_num} -P {progress_percent} -a pause -PlexUser {username}

Usage

-setup              Setup aplication
-reset              Reset settings and revoke token

-m                  Media type (movie, show, episode)
-a                  Action (start, pause, stop)
-s                  Name of the TV Series
-M                  Name of the Moviename
-y                  Year of the movie/TV Show
-S                  Season number
-E                  Episode number
-t                  TVDB ID
-i                  IMDB ID
-P                  Percentage progress (Ex: 10.0)
-PlexUser           The Plex username
-refreshToken       Refreshes the Trakt token 

FAQ & Troubleshooting

Github All Releases

License

Distributed under the GPL License.

Similar Projects

Bug Squashers!

About

Powershell script to send Tautulli notificaions to Trakt

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published