Running External Program: converting one line to bat file

Linux specific questions, problems.
Post Reply
sideoutdude16

Running External Program: converting one line to bat file

Post by sideoutdude16 »

I am wanting to do this for a while. I don't have much experience in writing codes and script but I am learning as I go.

I've had two boxes with QBT running on both separated for two categories of TV and movies to extract all files within the folder after the download is completed. Now I am deciding to go with one box and that means I have to write the code from scratch and would need assistance from you guys.

I have Sonarr and Radarr running the symlinks to copy the files from the QBT location to the Plex location.

Code: Select all

unrar x -r /home/user/Filepath/folder/TV/%N/*.rar /home/user/Filepath/folder/TV/%N/

Code: Select all

unrar x -r /home/user/Filepath/folder/Movies/%N/*.rar /home/user/Filepath/folder/Movies/%N/
so with the script, I would need to start by identifying categories first which is [glow=red,2,300]Sonarr[/glow] and [glow=red,2,300]Radarr[/glow]. Once the torrent is tied with the right category, I would like to have the script run to unrar the files by staying in the same location of each folder thru my NAS server.

let me know if I make sense
Post Reply