rromeroar / Rectificarr

This script uses Radarr API to check if exist an activity with "Unable to parse file" error or "Unknown Movie" error and force rename. Optional, This project contains posttorrent.sh Bash script integrated with Transmission Daemon to auto-unrar torrent downloads.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rectificarr

  • Sometimes Torrent Trackers set shit names in movie files.
  • This shit causes "Unable to parse file" or "Unknown Movie" error in Radarr Activity, then Radarr can't rewrite file to setted Path.
  • This script uses Radarr API to check if exist an activity with this error and force rename
  • Optional, This project contains posttorrent.sh Bash script integrated with Transmission Daemon to auto-unrar torrent downloads.

Requirements

  • Python3
  • Transmission Daemon
  • Radarr
  • Radarr API Key

Installation

  • I recommend /opt/ in Linux or C:\ProgramData in Windows, to allocate Rectificarr.
  • The next steps are tested over Ubuntu 22.04 LTS
cd /opt && git clone https://github.com/fe80Grau/Rectificarr.git

Rectificarr

  • Edit config.json with your values. (To found Radarr API Key go to Radarr web interface -> Settings -> General -> Show Advanced -> Search for API Key in Security section).
  • Save it
  • Check if is it working.
/usr/bin/python3 /opt/Rectificarr/main.py
  • If don't error presents, it's ok
  • Add cronjob with root privileges. Each 2 hours Python3 runs Rectificarr script. (Edit cron values if you want another interval)
cd /etc/cron.d &&
sudo echo "00 */2 * * * root /usr/bin/python3 /opt/Rectificarr/main.py" > rectificarr

posttorrent.sh / after download unrar for Transmission (Only for Linux)

  • To make the script work you have to add/change these lines in a configuration file named "settings.json" (usually /etc/transmission-daemon/settings.json).
"script-torrent-done-enabled": true, 
"script-torrent-done-filename": "/opt/Rectificarr/posttorrent.sh", 
  • Reload Transmission Daemon. To set new settins.json, important to use next command. (If you uses service or systemcl your changes in settings.json will be not applied, and will be replaced with old values)
invoke-rc.d transmission-daemon reload

Credits

GitHub - ShieldsIO GitHub - Transmission GitHub - Radarr Transmission Forum - Killemov

About

This script uses Radarr API to check if exist an activity with "Unable to parse file" error or "Unknown Movie" error and force rename. Optional, This project contains posttorrent.sh Bash script integrated with Transmission Daemon to auto-unrar torrent downloads.


Languages

Language:Python 83.5%Language:Shell 16.5%