Files are always renamed

I have Rename Episodes set to No, yet files are being renamed. Here’s the details:

Torrent Name:
State.of.Affairs.S01E13.Deadcheck.720p.WEB-DL.DD5.1.H.264-QUEENS[rarbg]

The torrent contains a folder of the same name with the following three files:

RARBG.com.txt
State.of.Affairs.S01E13.Deadcheck.720p.WEB-DL.DD5.1.H.264-QUEENS.mkv
State.of.Affairs.S01E13.Deadcheck.720p.WEB-DL.DD5.1.H.264-QUEENS.srt

CDH is enabled.
Rename Episodes is set to No.
uTorrent is the client.

When Sonarr imports the file, it changes the name of the mkv file to:

State.of.Affairs.S01E13.Deadcheck.720p.WEB-DL.DD5.1.H.264-QUEENS[rarbg].mkv

It looks like it’s using the torrent name. It happens consistently. Can’t tell if it’s happening with USENET clients because the NZBs I’ve used match the video file names exactly.


I’m going to turn CDH off and do my own post processing using the Drone Factory folder. It seems to be the only way I don’t have file naming problems.

Please don’t remove the Drone Factory functionality.

You can use the {Original FileName} token with renaming on, that will ensure the file name is always used, if the file name is hashed, as is more common with Usenet now it will use the hashed name though, so it might be worth having a script for usenet that renames the filename to the folder name.

If you can run a script before Sonarr process it you could do that, CDH is definitely the preferred way.

In all likelihood it will either be removed or its functionality altered, but that won’t be until a v3 release.

For usenet I was renaming the hashed file. However, Sonarr was still using the folder name which contained -NZBgeek instead of my file name. When I saw that, I told Sonarr to ignore all -NZBgeek nzbs. I can’t ignore the [rarbg] stuff. I need those. There are no other alternatives at KAT. I could use freshon.tv when/if Sonarr supports that tracker. All torrents there are named identically to the file name.

For now, I’ll first try this:

CDH On
Rename Episodes On using {Original Filename}

If that doesn’t work, please don’t remove the Drone Factory factory functionality until there’s some way that will keep the correct file name with CDH on.

Sonarr prefers the folder name because its a sane name almost always (not hashed), thats what we added the {Original Filename} token.

If KAT didn’t allow garbage appended to the torrent name this would all be moot, but I digress.

The {Original Filename} token worked. I tested it with something from rarbg.com. The torrent (and folder) had [rarbg] appended to the name, but the actual torrent mkv file did not. Sonarr kept the file name.