Page 1 of 1

Is there a way to rename files based on nzb name?

Posted: 25 Aug 2019, 17:01
by ecrispy
This is not for movies/tv shows for which I use VideoSort + Sonarr etc. This is for other categories/misc items.

My goal is very simple - if nzb is called SomeFile.nzb then the download should be SomeFile/SomeFile.ext, not whatever filename is downloaded.

I searched for this and suggestion was to use VideoSort which has an option PreferNzbName which renames files using the nzb's name. So I made a copy of VideoSort called MyVideoSort and use it for my custom category. In it I just set movie naming scheme to '%t/%t'. However it also first tries to guess the type of file. Sometimes it thinks something is a tv show when it isn't, and sometimes it will ignore part of the filename based on how it parses it etc.

Does such a script exist or can someone tell me how to achieve this?

Re: Is there a way to rename files based on nzb name?

Posted: 28 Aug 2019, 14:05
by hugbug
You should use %dn instead of %t. Use the same format specifier for all format options: MovieFormat, SeriesFormat and DatedFormat.