Sabnzbd TV rename feature

Status
Not open for further replies.

Christopher Ward

Contributor
Joined
May 14, 2015
Messages
104
Not sure if this is the correct place for this question but when my Sabnzbd downloads tv shows passed from sickbeard sometimes it makes the same tv folder but in a different format.

For example one day it'll download and make a folder "Chicago PD" and the next it'll make a folder called "Chicago P D" with a space.

it does this for multiple shows including:

Marvels Agents of S H I E L D - Marvels Agents of SHIELD
Hawaii Five-0 2010 - Hawaii Five-0
Scandal - Scandal 2012
The Flash 2014 - The Flash
NCIS LA - Ncis Los Angeles

I have lived with it for a while and just wondering if its fixable so it just makes the one folder for each of those type of shows.

Sabnzbd does the post processing and looks like this:
upload_2017-2-16_14-1-18.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I have never seen someone actually use that feature. everyone I know uses post-processing in sickbeard or nzbtomedia
 

Christopher Ward

Contributor
Joined
May 14, 2015
Messages
104
I'll try and use SB post processing and let you know how i get on, I've always used the sorting feature on sab for movies and tv shows so no idea how i would set SB up to do it.

Do you know of any guides, i found one but its for sickrage so not sure how to set it up properly.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I maintain documentation of my setup on my blog (google jruehlig.com)
but, I also use sickrage, don't know of many people still using sickbeard either, lol.

oh, and if you did still want to use that feature the sabnzbd forum might be better help. the main dev is active there.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Oh it was your video i came across and noticed it was SickRage so wasn't sure if the same rules applies if i was using SB. I'll try using SB and if its complicated ill probably just follow your video.

I found this tutorial but i can't find the path to SB scripts folder when im navigating sab folders bit :
https://jetshred.com/2012/07/31/configuring-sickbeard-to-work-with-sabnzbd-plus/
are the plugins installed to the same jail, if not sabnzbd won't be able to see sickbeards scripts.
 

Christopher Ward

Contributor
Joined
May 14, 2015
Messages
104
Oh that's a problem then. It put them into different jails when i installed through the plugins tab, I guess i'll follow your guide lol
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
do note the video for my setup is outdated. my blog steps are kept up to date though.
 

Christopher Ward

Contributor
Joined
May 14, 2015
Messages
104
do note the video for my setup is outdated. my blog steps are kept up to date though.

Hi Joshua, i seem to have run into some problems and im hoping you can help me.

First let me explain how I've set everything up and how i intend to use it. I didn't do any of the transmission stuff and I have the following folder structure:

downloads\complete\movies (not "movie" like on your video and website)
downloads\complete\tv
downloads\incomplete\
videos\movies
videos\tvshows

I would like downloaded movies to go to downloads > complete > movies, it auto rename them, once i watch i'll manually move it to videos > movies, same with tv shows downloads\complete\tv then i manually move to videos\tvshows


Problem 1:
The nginx doesn't seem to be working i can access the plugins via the following urls

http://192.168.0.35:5050/couchpotato/
http://192.168.0.35:8081/sickrage/home
http://192.168.0.35:8080/sabnzbd/

When i remove the port from sickrage and couchpotato i get 404 error not found but sabnzbd works.

http://192.168.0.35/sabnzbd/ (works)
http://192.168.0.35/sickrage/home (404 not found)
http://192.168.0.35/couchpotato/ (404 not found)

---


My next problem is with couchpotato.

when the newer versions of sab install now it auto generates a few categories for you, "movies", "tv" etc, so i decided to use the one it created called "movies" and not "movie" like your guide (you'll also notice i have a movies folder in downloads instead of movie.

I got this error:

Code:
[21:35:15] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[21:35:15] [INFO]::MAIN: Checking database structure...
[21:35:15] [INFO]::MAIN: Checking if git needs an update
[21:35:16] [INFO]::MAIN: No update needed
[21:35:16] [INFO]::MAIN: nzbToMedia Version:80c8ad58523ab99825c02f3855f9bd3dc9945d57 Branch:master (FreeBSD 10.3-STABLE)
[21:35:16] [INFO]::MAIN: #########################################################
[21:35:16] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[21:35:16] [INFO]::MAIN: #########################################################
[21:35:16] [INFO]::MAIN: Script triggered from SABnzbd
[21:35:16] [ERROR]::MAIN: Category:[movies] is not defined or is not enabled. Please rename it or ensure it is enabled for the appropriate section in your autoProcessMedia.cfg and try again.
[21:35:16] [ERROR]::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToCouchPotato.py script.


so i looked in the autoProcessMedia file and changed [[movie]] to [[movies]]


Code:
[CouchPotato]                                                                                                                    
    #### autoProcessing for Movies                                                                                              
    #### movie - category that gets called for post-processing with CPS                                                          
    [[movies]]                                                                                                                  
        enabled = 1                                                                                                              
        apikey = f276a2b9056d45c29cc7xxxxxxxxxx                                                                               
        host = localhost                                                                                                        
        port = 5050                                                                                                              
        ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######                                                    
        ssl = 0                                                                                                                  
        web_root = /couchpotato                                                                                                  
        # Enable/Disable linking for Torrents                                                                                    
        Torrent_NoLink = 0                                                                                                      
        keep_archive = 1                                                                                                        
        method = renamer                                                                                                        
        delete_failed = 1                                                                                                        
        wait_for = 2                                                                                                            
        extract = 1                                                                                                              
        # Set this to minimum required size to consider a media file valid (in MB)                                              
        minSize = 0                                                                                                              
        # Enable/Disable deleting ignored files (samples and invalid media files)                                                
        delete_ignored = 1                                                                                                      
        ##### Enable if Couchpotato is on a remote server for this category                                                      
        remote_path = 0                                                                                                          
        ##### Set to path where download client places completed downloads locally for this category                            
        watch_dir = ""                                                                                                          
        ##### Set the recursive directory permissions to the following (0 to disable)                                            
        chmodDirectory = 0


Now from the sab history it looks like it worked

CouchPotato: Successfully post-processed Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD.nzb! (More)

but when i go to downloads > movies there is nothing there. It shows up for half a second after it unpacks then once it processes it vanishes.

Code:
[21:57:19] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[21:57:19] [INFO]::MAIN: Checking database structure...
[21:57:19] [INFO]::MAIN: Checking if git needs an update
[21:57:19] [INFO]::MAIN: No update needed
[21:57:19] [INFO]::MAIN: nzbToMedia Version:80c8ad58523ab99825c02f3855f9bd3dc9945d57 Branch:master (FreeBSD 10.3-STABLE)
[21:57:19] [INFO]::MAIN: #########################################################
[21:57:19] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[21:57:19] [INFO]::MAIN: #########################################################
[21:57:19] [INFO]::MAIN: Script triggered from SABnzbd
[21:57:19] [INFO]::MAIN: Auto-detected SECTION:CouchPotato
[21:57:19] [INFO]::MAIN: Calling CouchPotato:movies to post-process:Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD.nzb
[21:57:19] [INFO]::MAIN: Attemping imdbID lookup for Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD.nzb
[21:57:19] [INFO]::MAIN: Searching folder and file names for imdbID ...
[21:57:19] [INFO]::MAIN: Searching IMDB for imdbID ...
[21:57:19] [INFO]::MAIN: Found imdbID [tt1211837]
[21:57:20] [INFO]::TRANSCODER: Checking [Doctor.Strange.2016.720p.BluRay.DTS.x264-PriMaLHD.mkv] for corruption, please stand by ...
[21:57:20] [INFO]::TRANSCODER: SUCCESS: [Doctor.Strange.2016.720p.BluRay.DTS.x264-PriMaLHD.mkv] has no corruption.
[21:57:20] [POSTPROCESS]::COUCHPOTATO: Starting renamer scan for Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD.nzb
[21:57:20] [POSTPROCESS]::COUCHPOTATO: SUCCESS: Finished renamer scan for folder /mnt/media/downloads/complete/movies/Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD
[21:57:20] [POSTPROCESS]::COUCHPOTATO: Checking for status change, please stand by ...
[21:57:20] [POSTPROCESS]::COUCHPOTATO: SUCCESS: Movie tt1211837 has now been added to CouchPotato
[21:57:20] [INFO]::CLEANDIR: Doing Forceful Clean of /mnt/media/downloads/complete/movies/Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD
[21:57:20] [INFO]::MAIN: Deleting /mnt/media/downloads/complete/movies/Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD
[21:57:20] [INFO]::MAIN: The /usr/local/share/nzbToMedia/nzbToCouchPotato.py script completed successfully.
CouchPotato: Successfully post-processed Doctor Strange 2016 720p BluRay DTS x264-PriMaLHD.nzb!


TO and FROM under Renamer are set to /mnt/media/downloads/complete/movies/
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi Christopher,

1) Did you set the webroot settings in sickrage (in it's config) and couchpotato (in its advanced settings), then restart those plugins?
If not it won't know to listen at those URL paths. sabnzbd listens at both "/" and "/sabnzbd" by default.

2) What does couchpotato have for that movie under Movies > Manage? It should say where it moved the files to.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Also manually moving files after being watched seems like a bit of a pain to me =P

I personally have everything put where I ultimately want it. I then watch everything through emby or kodi (which syncs its library using the emby plugin).
That way I or my family doesn't need to manage files.
 

Christopher Ward

Contributor
Joined
May 14, 2015
Messages
104
Hi Christopher,

1) Did you set the webroot settings in sickrage (in it's config) and couchpotato (in its advanced settings), then restart those plugins?
If not it won't know to listen at those URL paths. sabnzbd listens at both "/" and "/sabnzbd" by default.

2) What does couchpotato have for that movie under Movies > Manage? It should say where it moved the files to.

I tend to watch a lot of shows and it's hard to keep track of where i'm at unless i do it like that.

I have the couchpotato Url Base set to "couchpotato"

I set the web_root when i was following along with your video via ssh with "EE /var/db/sickrage/config.ini"

see attachments.

upload_2017-2-18_22-28-11.png upload_2017-2-18_22-30-52.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I tend to watch a lot of shows and it's hard to keep track of where i'm at unless i do it like that.

I have the couchpotato Url Base set to "couchpotato"

I set the web_root when i was following along with your video via ssh with "EE /var/db/sickrage/config.ini"

see attachments.

View attachment 16083 View attachment 16084
something like emby/kodi does that for you. it manages your watched status, and where you are in every episode.

Can I see a screenshot of your nginx config?
 

Christopher Ward

Contributor
Joined
May 14, 2015
Messages
104
If it helps when i go to http://192.168.0.35:8081/

i get this on a blank page:

Code:
Traceback (most recent call last):
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/tornado/web.py", line 1446, in _execute
    result = self.prepare()
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/tornado/web.py", line 2174, in prepare
    raise HTTPError(self._status_code)
HTTPError: HTTP 404: Not Found




upload_2017-2-18_23-9-6.png


upload_2017-2-18_23-9-49.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
If it helps when i go to http://192.168.0.35:8081/

i get this on a blank page:

Code:
Traceback (most recent call last):
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/tornado/web.py", line 1446, in _execute
    result = self.prepare()
  File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/lib/tornado/web.py", line 2174, in prepare
    raise HTTPError(self._status_code)
HTTPError: HTTP 404: Not Found




View attachment 16086

View attachment 16087
check your server block, there are some typos there.
I see alot of people get that same typo. Maybe a symptom of using the web terminal.
 

Christopher Ward

Contributor
Joined
May 14, 2015
Messages
104
I copied and pasted the server block part from the website, i done it again and started the service and get:

Code:
root@sabnzbd_1:/ # service nginx start                                                                                             
Performing sanity check on nginx configuration:                                                                                     
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok                                                         
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful                                                       
Starting nginx.                                                                                                                     
root@sabnzbd_1:/ #     


but i still get the error
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I copied and pasted the server block part from the website, i done it again and started the service and get:

Code:
root@sabnzbd_1:/ # service nginx start                                                                                            
Performing sanity check on nginx configuration:                                                                                    
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok                                                        
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful                                                      
Starting nginx.                                                                                                                    
root@sabnzbd_1:/ #     


but i still get the error
look at each line starting at "location". What you have is not correct.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
yeah, I see that issue often. might be a bug with the web console
 
Status
Not open for further replies.
Top