I have a script that sabnzbd runs to process downloaded tv shows. I have episode naming turned off in nzbdrone and completed download handling enabled. drone factory is disabled. I have sorting disabled in sabnzbd. The desired result is nzbdrone moves the renamed file to the series and not rename the file back.
This is the output from my post processing script
Completed Path: /sabnzb/complete/The.Office.US.S09E20.BDRip.X264-DEMAND
NZB: The.Office.US.S09E20.BDRip.X264-DEMAND
Rename episodes using [TheTVDB]
Auto-detected query: [The Office US]
Fetching episode data for [The Office (US)]
[MOVE] Rename [/sabnzb/complete/The.Office.US.S09E20.BDRip.X264-DEMAND/The.Office.US.S09E20.BDRip.X264-DEMAND.mkv] to [The Office (US) - 9x20 - Paper Airplane.mkv]
Processed 1 files
I am renaming the file form The.Office.US.S09E20.BDRip.X264-DEMAND.mkv to The Office (US) - 9x20 - Paper Airplane.mkv
Once I check the folder for the show The Office the file seems to have been renamed again.
Name: The.Office.US.S09E20.BDRip.X264-DEMAND
Source: /sabnzb/complete/The.Office.US.S09E20.BDRip.X264-DEMAND/The Office (US) - 9x20 - Paper Airplane.mkv
Imported To: /TV/The Office (US)/The.Office.US.S09E20.BDRip.X264-DEMAND.mkv
Also, this was working before and I am not sure what happened.
Here is when it was working. This example is for Breaking Bad
Completed Path: /sabnzb/complete/Breaking.Bad.S05E16.720p.BluRay.x264-demand
NZB: Breaking.Bad.S05E16.720p.BluRay.x264-demand
Rename episodes using [TheTVDB]
Auto-detected query: [Breaking Bad]
Fetching episode data for [Breaking Bad]
[MOVE] Rename [/sabnzb/complete/Breaking.Bad.S05E16.720p.BluRay.x264-demand/Breaking.Bad.S05E16.720p.BluRay.x264-demand.mkv] to [Breaking Bad - 5x16 - Felina.mkv]
Processed 1 files
The file was renamed from Breaking.Bad.S05E16.720p.BluRay.x264-demand.mkv to [Breaking Bad - 5x16 - Felina.mkv
Name: Breaking Bad - 5x16 - Felina
Source: /sabnzb/complete/Breaking.Bad.S05E16.720p.BluRay.x264-demand/Breaking Bad - 5x16 - Felina.mkv
Imported To: /TV/Breaking Bad/Breaking Bad - 5x16 - Felina.mkv
Any help is appreciated. I can provide more information if needed.
Drone prefers the nzb name over the file name when renaming is off, thats the reason why its changing back. Whats the purpose of having the post processing script rename the file over having drone do it? The format your using is very similar to the one I use, so drone could handle it easily.
I was getting files where the file name was messed up and it wasn’t getting renamed by drone. For example the file name was just a bunch of numbers and letters with the extension. Drone was leaving it in my completed folder. I have my script rename the file to what the nzb is before looking it up to rename it. It is strange because this was working with no issues and now it is no longer working.
Ahh gotcha, thats a valid reason (that issue has been a pain for us to handle, but we want to improve on it). In the mean time, renaming the release to the nzb name would be ideal, then let drone rename it. When we have better support for the hashed release names the script could be removed and drone will handle it all.
Of course renaming then letting drone rename shouldn’t cause any issues, if its a matter of this script works well enough.
The reason for the change was the fact that file names are generally worse than the nzb name, where a release would be named the.series.s01e01.x64-drone
and the filename is drone-ts.101.mkv
, it also applies to the hash releases where drone was able to import it, but used the filename of asdfjjhkjadslkakldfjkjkhadf.mkv instead of the nzb name. Unfortunately its caused you some issues.
I am going to enable the media handling again and just have my script rename the file anyway and see if that causes me any issues.
Talking with @kayone we think we have a solution that will benefit people, without being super confusing, which would be to use the file name if renaming is off, if its on and set to {Original Title} then use the nzb name (falling back to the file name if that information isn’t available).
Could you explain what I need to do to set this up?
No, because we need to make code changes. We’ll get to it, but its not something we’re currently working on.
Markus,
Is this issue fixed? I thought I saw in the update logs that this was fixed. I am currently on 2.0.0.2341 and the issue is still there.
Thanks
Yes, you can use {Original Title now}
I just tried changing the Standard Episode Format from {Series Title} - {season}x{episode:00} - {Episode Title} to {Original Title} leaving Rename Episodes turned on. I have also tried with Rename Episodes turned off.
I ran a test download and my script renamed the file to this
Big Rig Bounty Hunters - 2x01 - Hotwired.mp4
After checking the file once it had been moved it was renamed to this
Big.Rig.Bounty.Hunters.S02E01.Hotwired.HDTV.x264-W4F.mp4
Ahh right, Original Title is there to deal with the scenario where people want to rename some files, but keep others named as-is (which uses the release name in most cases).
Okay, I’m going to add another token {Original Filename}
that will use the original filename in all cases, I think this is a better option than changing the behavior of renaming set to off or changing Original Title away from its intended purpose.
Added to Trello: https://trello.com/c/cNsFCa19/874-add-original-filename-renaming-token
Markus,
I see in the update for 2.0.0.2663 that a new option has been added
Original Filename renaming token to use original filename as-is
Will this fix the issue I am having and if so how can I select to use this option? I thought it would be by Original Title but do not see it in the list.
Yes, it should.
the token is {Original Filename}
When trying to use {Original Filename} in Standard Episode Format I receive this message
“Must contain season and episode numbers OR Original Title”
Ahh sorry about that, missed it in the validation of settings. It will be in the next release (just made sure its working properly).
It will also be in the develop build later today if you want to try that 2.0.0.2684 or greater to make sure its working before this makes it to the main release branch.
ok. just let me know when it has been added to the develop build and available and I will switch over to test.
Using {Original Filename} works. I was able to enter it manually into the Standard Episode Format box and was able to save without any errors. Are you going to include this option in the list of available options?
At the moment no, its not useful to a large enough group of users.