Closed dellipse closed 10 years ago
what script is being called by the TV category in NZBget? Are you calling nzbToMedia, or nzbToSickBeard/nzbToNzbDrone?
which ever script is being called, you need to go to that script config in NZBGet settings,
So if it is nzbToSickBeard, you need to go to the nzbToSickBeard settings and change sbCategory to "TV"
note, "tv" and "TV" are not the same.
Likewise, you need to make sure the cpCategory in nzbToCouchPotato is "Movies" if this is the category used in NZBGet
If you care calling nzbToMedia.py, you change these categories in theta config...
If you look at the screen shots below, this is where I have configured them, and yes I am paying close attention to letter case.
From how the instructions are written, it does not appear that I would need to put the settings both in the fields above AND autoProcessMedia.cfg. However, if that is what it takes I can do that as well.
By the way, where does it store the configuration if it is entered from the web interface of NZBGet? I would like to look there to make sure there are no issues with the raw file.
Thank you for being so responsive AND patient.
ok... if you have entered those settings and saved the settings in NZBGet (which then requires a restart) the settings will be saved in nzbget.conf (probably right at the bottom)
Also, when the script runs, it should write these details into the autoProcessMedia.cfg
Are you able to post the full log details so I can try and see exactly what is going on?
I can do that, plus I have the tools to do a remote diagnostics session if you desire.
nzbtomedia.log contents:
2014-05-29 00:46:23 INFO ::MAIN: Checking database structure... 2014-05-29 00:46:23 INFO ::MAIN: Database upgrade required: Initial Schema 2014-05-29 00:46:24 INFO ::MAIN: Checking if git needs an update 2014-05-29 00:46:24 ERROR ::MAIN: Unable to determine installed version via git, please check your logs! 2014-05-29 00:46:24 INFO ::MAIN: No update needed 2014-05-29 00:46:24 INFO ::MAIN: nzbToMedia Version:9.3 Branch:dev (FreeBSD 10.0-RELEASE-p2) 2014-05-29 00:46:24 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled! 2014-05-29 00:46:24 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:46:24 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled! 2014-05-29 00:46:24 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:46:24 INFO ::MAIN: ######################################################### 2014-05-29 00:46:24 INFO ::MAIN: ## ..::[nzbToMedia.py]::.. ## 2014-05-29 00:46:24 INFO ::MAIN: ######################################################### 2014-05-29 00:46:24 INFO ::MAIN: Script triggered from NZBGet (11.0 or later). 2014-05-29 00:46:24 ERROR ::MAIN: Category:[Movies] is not defined or is not enabled. Please rename it or ensure it is enabled for teh appropriate section in your autoProcessMedia.cfg and try again. 2014-05-29 00:46:24 ERROR ::MAIN: A problem was reported in the /dt/nzbget/ppscripts/nzbToMedia/nzbToMedia.py script. 2014-05-29 00:50:06 INFO ::MAIN: Checking database structure... 2014-05-29 00:50:06 INFO ::MAIN: Checking if git needs an update 2014-05-29 00:50:06 ERROR ::MAIN: Unable to determine installed version via git, please check your logs! 2014-05-29 00:50:06 INFO ::MAIN: No update needed 2014-05-29 00:50:06 INFO ::MAIN: nzbToMedia Version:9.3 Branch:dev (FreeBSD 10.0-RELEASE-p2) 2014-05-29 00:50:06 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled! 2014-05-29 00:50:06 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:50:06 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled! 2014-05-29 00:50:06 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:50:06 INFO ::MAIN: ######################################################### 2014-05-29 00:50:06 INFO ::MAIN: ## ..::[nzbToMedia.py]::.. ## 2014-05-29 00:50:06 INFO ::MAIN: ######################################################### 2014-05-29 00:50:06 INFO ::MAIN: Script triggered from NZBGet (11.0 or later). 2014-05-29 00:50:06 WARNING ::MAIN: Par-repair failed, setting status "failed" 2014-05-29 00:50:06 WARNING ::MAIN: Unpack failed, setting status "failed" 2014-05-29 00:50:06 ERROR ::MAIN: Nothing to post-process: destination directory /dt/nzbget/inter/CENSORED doesn't exist. Setting status failed 2014-05-29 00:50:06 ERROR ::MAIN: Category:[TV] is not defined or is not enabled. Please rename it or ensure it is enabled for teh appropriate section in your autoProcessMedia.cfg and try again. 2014-05-29 00:50:06 ERROR ::MAIN: A problem was reported in the /dt/nzbget/ppscripts/nzbToMedia/nzbToMedia.py script. 2014-05-29 00:50:50 INFO ::MAIN: Checking database structure... 2014-05-29 00:50:50 INFO ::MAIN: Checking if git needs an update 2014-05-29 00:50:50 ERROR ::MAIN: Unable to determine installed version via git, please check your logs! 2014-05-29 00:50:50 INFO ::MAIN: No update needed 2014-05-29 00:50:50 INFO ::MAIN: nzbToMedia Version:9.3 Branch:dev (FreeBSD 10.0-RELEASE-p2) 2014-05-29 00:50:50 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled! 2014-05-29 00:50:50 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:50:50 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled! 2014-05-29 00:50:50 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:50:50 INFO ::MAIN: ######################################################### 2014-05-29 00:50:50 INFO ::MAIN: ## ..::[nzbToMedia.py]::.. ## 2014-05-29 00:50:50 INFO ::MAIN: ######################################################### 2014-05-29 00:50:50 INFO ::MAIN: Script triggered from NZBGet (11.0 or later). 2014-05-29 00:50:50 WARNING ::MAIN: Par-repair failed, setting status "failed" 2014-05-29 00:50:50 WARNING ::MAIN: Unpack failed, setting status "failed" 2014-05-29 00:50:50 ERROR ::MAIN: Nothing to post-process: destination directory /dt/nzbget/inter/CENSORED doesn't exist. Setting status failed 2014-05-29 00:50:50 ERROR ::MAIN: Category:[TV] is not defined or is not enabled. Please rename it or ensure it is enabled for teh appropriate section in your autoProcessMedia.cfg and try again. 2014-05-29 00:50:50 ERROR ::MAIN: A problem was reported in the /dt/nzbget/ppscripts/nzbToMedia/nzbToMedia.py script. 2014-05-29 00:51:46 INFO ::MAIN: Checking database structure... 2014-05-29 00:51:46 INFO ::MAIN: Checking if git needs an update 2014-05-29 00:51:46 ERROR ::MAIN: Unable to determine installed version via git, please check your logs! 2014-05-29 00:51:46 INFO ::MAIN: No update needed 2014-05-29 00:51:46 INFO ::MAIN: nzbToMedia Version:9.3 Branch:dev (FreeBSD 10.0-RELEASE-p2) 2014-05-29 00:51:46 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled! 2014-05-29 00:51:46 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:51:46 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled! 2014-05-29 00:51:46 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-05-29 00:51:46 INFO ::MAIN: ######################################################### 2014-05-29 00:51:46 INFO ::MAIN: ## ..::[nzbToMedia.py]::.. ## 2014-05-29 00:51:46 INFO ::MAIN: ######################################################### 2014-05-29 00:51:46 INFO ::MAIN: Script triggered from NZBGet (11.0 or later). 2014-05-29 00:51:46 WARNING ::MAIN: Par-repair failed, setting status "failed" 2014-05-29 00:51:46 WARNING ::MAIN: Unpack failed, setting status "failed" 2014-05-29 00:51:46 ERROR ::MAIN: Nothing to post-process: destination directory /dt/nzbget/inter/CENSORED doesn't exist. Setting status failed 2014-05-29 00:51:46 ERROR ::MAIN: Category:[TV] is not defined or is not enabled. Please rename it or ensure it is enabled for teh appropriate section in your autoProcessMedia.cfg and try again. 2014-05-29 00:51:46 ERROR ::MAIN: A problem was reported in the /dt/nzbget/ppscripts/nzbToMedia/nzbToMedia.py script.
(file CENSORED to protect the content)
fascinating... I am keen to do a diagnostic session (obviously I can't reproduce this at my end..)
TeamViewer is the easiest for me if you are able to run that? Just email the details.
Check for a PM on the NZBGet Forum.
Just checked... not seeing anything
If you click on my name here, there is a link to my email...
Ok, I'm going to close this one now. I'll try and let you know when i have improved transcoding ready for testing :)
So, this may not be a possibility at all but thought it wouldn't hurt to ask. I'm trying to do the same thing with Deluge and NZBDrone, that is have my TV shows that download via Deluge processed and added back to NZBDrone. I'm getting the same error about the category not being defined. However, my label in Deluge is set to "tv". Any thoughts or help would be appreciated. Apologies if this isn't the appropriate place to post.
in autoProcessMedia.cfg, make sure you have the following:
[NzbDrone]
[[tv]]
enabled = 1
if it is set this way, and you still have an error, can you show the full log for a postprocess event?
Yep, it is set that way. Here is the latest log:
2014-06-30 19:34:38 INFO ::MAIN: ######################################################### 2014-06-30 19:34:38 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ## 2014-06-30 19:34:38 INFO ::MAIN: ######################################################### 2014-06-30 19:34:38 INFO ::MAIN: SEARCH: Found torrent directory Show 1 in input directory directory /home/username/Downloads/complete 2014-06-30 19:34:38 INFO ::MAIN: SEARCH: Setting inputDirectory to /home/username/Downloads/complete/Show 1 2014-06-30 19:34:38 ERROR ::MAIN: Category:[] is not defined or is not enabled. Please rename it or ensure it is enabled for teh appropriate section in your autoProcessMedia.cfg and try ag$ 2014-06-30 19:34:38 ERROR ::MAIN: A problem was reported in the /home/username/nzbToMedia/TorrentToMedia.py script. 2014-06-30 19:36:25 INFO ::MAIN: Loading config from [/home/username/nzbToMedia/autoProcessMedia.cfg] 2014-06-30 19:36:25 INFO ::MAIN: Checking database structure... 2014-06-30 19:36:25 INFO ::MAIN: Checking if git needs an update 2014-06-30 19:36:25 INFO ::MAIN: No update needed 2014-06-30 19:36:25 INFO ::MAIN: nzbToMedia Version:db063ff4428661b6f046628bee8a414804c34a64 Branch:master (Linux 3.10.23-xxxx-std-ipv6-64) 2014-06-30 19:36:25 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled! 2014-06-30 19:36:25 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-06-30 19:36:25 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled! 2014-06-30 19:36:25 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ... 2014-06-30 19:36:25 INFO ::MAIN: ######################################################### 2014-06-30 19:36:25 INFO ::MAIN: ## ..::[TorrentToMedia.py]::.. ## 2014-06-30 19:36:25 INFO ::MAIN: ######################################################### 2014-06-30 19:36:25 INFO ::MAIN: SEARCH: Found torrent file Show 2.mp4 in input directory directory /home/username/Downloads/complete 2014-06-30 19:36:25 INFO ::MAIN: SEARCH: Setting inputDirectory to /home/username/Downloads/complete/Show 2.mp4 2014-06-30 19:36:25 ERROR ::MAIN: Category:[] is not defined or is not enabled. Please rename it or ensure it is enabled for teh appropriate section in your autoProcessMedia.cfg and try ag$ 2014-06-30 19:36:25 ERROR ::MAIN: A problem was reported in the /home/username/nzbToMedia/TorrentToMedia.py script.
Ok. So we are not receiving a directory.
Previously I didn't think deluge supported labels/categories... If it does, I can add.
So.
Appreciate the help.
Ok... Do item 3.... Then see if it now works.
Do you have a link to a list of parameters passed to plugin scripts? If the label is passed, we should be able to add that in here.
Never mind... Label is not an option! http://dev.deluge-torrent.org/wiki/Plugins/Execute
Just read that as well. Changing the directory seems to have done the trick, though. I get the following error but everything seems to have completed just fine.
2014-07-01 09:35:08 WARNING ::NZBDRONE: The number of missing episodes: 128 does not appear to have changed status after 2 minutes, Please check your logs. 2014-07-01 09:35:08 ERROR ::MAIN: A problem was reported in the autoProcess* script. If torrent was paused we will resume seeding 2014-07-01 09:35:13 ERROR ::MAIN: A problem was reported in the /home/username/nzbToMedia/TorrentToMedia.py script.
So, another question and this is most certainly user error. NzbDrone doesn't seem to be updating after the torrent downloads in Deluge. Is there a way to fix this/appropriately set both of these up to play nice together? Can they be sharing a download directory or would this cause a problem?
Can you post the full postprocess log (you can edit the name, or send via PM if you want)? What do you mean by sharing a directory?
Can you confirm what OS/System this is on? What user does deluge run as and what user does NZBDrone run as? I believe with other downloaders it has been confirmed that NZBDrone won't process the files if they are "still in use" by the downloader. To overcome this, in autoProcessMedia.cfg
[Torrent]
outputDirectory=/home/username/Downloads/processed
uselink = hard
This will link the files to the .../Downloads/processed/tv directory and send those files to NZBDrone for processing. Hardlinks appear as a "copy" but don't take additional hard disk space. If you set the option to delete original, this will delete the torrent after processing is complete, otherwise it will continue to seed.
Yeah, your log indicates you have been moving the files directly to your plex library.... Change this to link files to a processed directory as suggested above, and then let NZBDrone process the files over to the plex library.
Also, you will need to change the watch_dir to be /home/username/Downloads/tv (in autoProcessMedia.cfg [nzbDrone][[tv]]) to allow correct manual run.
Also, I saw errors for 7z... Try installing p7zip to fix this.
1, there is a typo in the above message.
However, I have verified that both the "TV" and "Movies" categories are defined within both NZBGet and the settings for the scripts within. I did NOT manually edit the config file.