Normalize Filename Case?

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
kraqh3d
Newbie
Newbie
Posts: 2
Joined: December 22nd, 2011, 12:50 pm

Normalize Filename Case?

Post by kraqh3d »

To be honest, I can't say this is a sabnzb bug. It is a bit of an annoyance so I was hoping it could be corrected. I've been using sabnzb on linux for near a year now. I started off with the stock Debian Squeeze version but quickly added the unofficial ppa repository so I can keep up to date. Sabnzb works beautifully with one rare exception. Linux has a case sensitive file system and every so often I find a situation where the files in a rar set don't have matching case. I've only ever run into a situation where some are all lower case, and some are all upper case. During the unpacking, Sabnzb will report a failure that the next file in the rar set cannot be found. It's really seems to be an issue with unrar as I tried manual extraction as well. And Gnome's File-Roller Archive Manager has the same problem. After normalizing the case of the files, the set will unrar without any issues. There's already some options to replace spaces, dots, and illegal characters. Would there be any harm in an option to force all downloaded files to lowercase or the like to address this?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Normalize Filename Case?

Post by shypike »

It is an issue with unrar.
Lowercasing all files won't help, since we don't know what unrar is looking for.
BTW: I do most of my downloading on Linux and I've not run into this issue.
Which unrar version are you using?
kraqh3d
Newbie
Newbie
Posts: 2
Joined: December 22nd, 2011, 12:50 pm

Re: Normalize Filename Case?

Post by kraqh3d »

Agreed. It's not an sabnzb issue. And I can assure that forcing all the files in the set to have a matching case does work. It's just easiest to use rename and force them all to lowercase. This doesn't happen often. I've probably hit this less than 10 times over the course of a year. I actually hit this issue today which is why posted this query. It occurs to me that part of the problem may be either par2, itself, or possibly how the par2 set is defined. I think sometimes repaired files may be all capital letters. This happens so rarely that I don't really pay attention, especially after I figured out the quick fix.

Here's dpkg output with the unrar and par2 versions:
ii unrar 1:3.9.10-1 Unarchiver for .rar files (non-free version)
ii par2 0.4-11 Parity Archive Volume Set, for checking and repair of files
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Normalize Filename Case?

Post by shypike »

Looks like the normal unrar, although there should be more recent ones.
I'm not keen om renaming the files, because it could affect posts
that now do process correctly.
The actual cause is in fact careless posters who use Windows.
Post Reply