I’m sure I’m missing something easy here.
The issue:
After post processing, I’m not able to figure out how to move the file to my Sorted TV folder (“Z:\media\TV Shows[Show Title]”). The properly converted and renamed files / folder sits in “Z:\media\Downloads\Complete\Drone” which is the folder path specified in SAB for the post-processing script.
Setup
Sabnzbd
- SAB Temporary download folder is “Z:\media\Downloads\In Progress\SABnzbd”
- SAB Completed download folder is “Z:\media\Downloads\Complete\SABnzbd”
- tv-nzbdrone category set up using below post process script. Folder path specified is “Z:\media\Downloads\Complete\Drone”.
- No groups / indexer tag set up.
- No sorting set up
Post-Process Script - nzbToNzbDroneMP4.py (Sickbeard MP4 Automator)
Drone
- Completed Download Handling enabled. Remove disabled. Drone factory interval set to 0.
- SAB set up for tv-nzbdrone category
- Each show Path set to “Z:\media\TV Shows[Show Title]”
It may have something to do with the following issue.
https://forums.sonarr.tv/t/mp4-automator/916
Below is the script output:
nzbToNzbDrone MP4 edition
Audio bitrate was invalid, defaulting to 256 per channel
Processing episode Z:\media\Downloads\Complete\Drone\Brew Dogs S02E10 720p HDTV x264-YesTV\brew.dogs.0210.720p-yestv.mkv
Video codec detected: h264
Audio stream detected: ac3 eng [Stream 1]
Z:\media\Downloads\Complete\Drone\Brew Dogs S02E10 720p HDTV x264-YesTV\brew.dogs.0210.720p-yestv.mp4 created
Z:\media\Downloads\Complete\Drone\Brew Dogs S02E10 720p HDTV x264-YesTV\brew.dogs.0210.720p-yestv.mkv deleted
Script triggered from SABnzbd, starting nzbDroneFactory...
Loading config from C:\Scripts\autoProcess.ini
{
"name": "DownloadedEpisodesScan",
"message": "Starting",
"startedOn": "0001-01-01T00:00:00Z",
"stateChangeTime": "2014-10-30T17:38:00.8527483Z",
"sendUpdatesToClient": false,
"state": "pending",
"manual": true,
"id": 349
}
==============================
Response code: 201
Name: DownloadedEpisodesScan
StartedOn: 0001-01-01T00:00:00Z
StateChangeTime: 2014-10-30T17:38:00.8527483Z
SendUpdatesToClient: False
State: pending
SeriesID: 349
Thanks in advance for any help you can provide. Thanks!
Drone factory interval set to 0 did you aswell setup the drone factory folder?
I mean why use a third party script if the feature is build into sonarr?
Automated MKV to MP4 conversion is provided as part of Sonarr? If it is I’m psyched!! I started using the script with SB to convert MKVs to MP4 and it worked great. Now I get the conversion, but no movement to the final folder. I didn’t set up a drone factory folder. Should I? I was under the impression the interval should be set to 0 (disabled) and therefore the folder was likely not needed. If it is, which of the above should it be set to?
Oke automated conversion not.
If you set the interval to 0 (disabled) sonarr doesn’t scan for completed downloads so it will never move them to the tv show directory.
If the automated conversion script can do it(Don’t use it so I don’t know and/or how to) thats fine aswell
But if you set drone interval to 1 (or higher) and the drone factory folder to the path your converted shows are placed: “Z:\media\Downloads\Complete\Drone” then sonarr will scan every 1 (or higher) minuts in that folder for shows and places them in the right tv directory
Which I personally prefer then letting a third party script do the moving.
Thats incorrect. It will use SAB’s completed path via CDH which is the preferred way to do it).
@redbeard1056 SAB has an interesting feature that reports the fill path of the file (not the containing folder) when it only contains one file, which will break CDH if the Post Processing script alters the filename. It does look like your script is attempting to tell Sonarr (drone) about the download so it will post process it, so you will need to check Sonarr’s logs to see what it did with the request. You will want to enable debug logs to really see what is going on.
It seems I have this working now - thanks guys! This is working with SAB’s CDH. One last bit that I think was screwing me up is that my Z: drive is a mapped drive. I already had the EXE in the startup folder but I didn’t have UNC paths everywhere. I updated to have UNC in SAB’s Config > Folders area as well as all locations within Drone including particularly the Path for each series. After a save and restart of both SAB and Drone all appears good.
One last tiny thing that’s still happening is that under the queue in Drone, I see import errors for items that have actually successfully imported. Not sure why that’s happening. I think I saw something about setting the Remove toggle in Completed Download Handling to take care of this somewhere. I just set it and we’ll see if that does it.
If you remove them from SAB then they will disappear (the queue in Sonarr is built from SAB’;s queue and history) and drives what is waiting to be imported.