Skip to content
desimaniac edited this page Feb 10, 2020 · 4 revisions

Some useful commands for Traktarr.

How to Fix An Actor Mismatch

Say you want to search for all movies by a certain actor/actress, but when you do:

traktarr movies -t person -a 'christopher lee' -l 100

It returns movies for an actor called Christopher Ming-Shun Lee instead.

As this is Traktarr, it uses Trakt as the API, so go to http://trakt.tv and search using the dropdown 'People' for Christopher Lee. It will show all results matching him. Click on the correct one and look at the URL:

https://trakt.tv/people/christopher-lee-720aecc5-2da9-494e-8f93-12811e3e9487

Now, copy the part after people/ and paste it into where the actors name should be:

traktarr movies -t person -a 'christopher-lee-720aecc5-2da9-494e-8f93-12811e3e9487' -l 100

It will now pull down the correcto actors movie and load them into Radarr.

Note: For Mediabox/Feederbox setups, this can be install in either system.

How To Set Up Multiple Instance Of Traktarr

Note: You will only need this if you are running multiple instance of sonarrx or radarrx because this will point to different instances of sonarr, for example using it for animes specific sonarr or 1080remux radarr movies and we will use systemd no cron job. Also this is assuming you have installed Traktarr (by l3uddz)

  1. First of all we are going to make a copy of traktarr.py and name it something similar to what we are going to use it for, for example in my case I am going to make another one called traktarr-animes.py

    cp /opt/traktarr/traktarr.py /opt/traktarr/traktarr-animes.py
  2. Then we are going to make a copy of the config.json as well. Make sure to name it something similar or easy to remember hence why naming it to something similar with the traktarr-animes.py in my case I have named it config-animes.json.

    cp /opt/traktarr/config.json /opt/traktarr/config-animes.json
  3. Now we are going to edit the traktarr-animes.py so that it points to a different config file which is config-animes.json in my case and generate a completely different log file so it doesn't store everything in one massive log instead each instance of traktarr store a separate file.

    nano /opt/traktarr/traktarr-animes.py
  4. After opening it in the first part --config there will be default=os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "config.json") we want to change the last part so around config.json just rename that to the config file we created for my case it was config-animes.json. Then there is another one called --logfile it will have something similar but this time it will be called default=os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "activity.log") we are going to make a new name or append this one. So add something similar for my case it will be "activity-animes.log" as you can see this is for the log file.

You should have something like this:

Traktarr.py Edit

save the file by pressing

 ctrl + o

Then to exit

  ctrl + x

Note: Don't forget to edit the new config-animes.json file to add your sonarrx or radarrx api key.

Systemd Setup

  1. First head over to cd /etc/systemd/system/ then we are going to make a copy of the service file for the traktarr.service again naming it something similar in my case I am going to be naming it traktarr-animes.service

    sudo cp traktarr.service traktarr-animes.service
  2. Then we want to make sure to edit the file and point it to the new traktarr-animes.py

    sudo nano traktarr-animes.service
  3. Edit the ExecStart=/usr/bin/python3 /opt/traktarr.py run to ExecStart=/usr/bin/python3 /opt/traktarr/traktarr-animes.py run make sure it matches the name you made for the new traktarr.py mine was traktarr-animes.py

You should have something like this:

Traktarr.py Edit

save the file by pressing

 ctrl + o

Then to exit

  ctrl + x

Lastly we are going to make a shortcut for the new traktarr-animes.py so that we can access it anywhere just like traktarr shows arg arg.

  sudo ln -s /opt/traktarr/traktarr-animes.py /usr/local/bin/traktarr-animes

Make sure it matches the path of the newly created traktarr.py and give it a name whatever you want but the simpler the better.

If you have done everything correctly then you should be able to do traktarr-animes and get an output :

Traktarr Complete

Install Guides

Repository

Apps

Misc Guides

General Stuff

Linux Stuff

Plex

Organizr

Downloading

STRM

Clone this wiki locally