Series Sorting: case sensitivity problem

Get help with all aspects of 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
zion2k
Newbie
Newbie
Posts: 25
Joined: November 12th, 2009, 7:29 am
Location: Germany

Series Sorting: case sensitivity problem

Post by zion2k »

Hello,

I have to following problem:
Linux server with sabnzbd (+ tv sorting enabled) and smb network share.
I access the stuff from a Windows client.
If I download a new episode of a tv series and the downloaded name is different to the already existing name a new directory is created.
Example:
existing name: "Name Of The TV Series"
downloaded name: "Name of the TV Series"
On the linux server is no problem with this. But with the Windows maschine I seen both directories through the samba share but no matter which directory I try to access I always get the content of the old one.

What must I change to get rid of this problem. My favorite solution would be that sabnzbd uses the already existing directory.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Series Sorting: case sensitivity problem

Post by sander »

Looks like a Windows-Samba-Linux problem to me. Does this help: https://serverfault.com/questions/70570 ... re-enabled
zion2k
Newbie
Newbie
Posts: 25
Joined: November 12th, 2009, 7:29 am
Location: Germany

Re: Series Sorting: case sensitivity problem

Post by zion2k »

I'm not shure if smbd <-> windows is the root cause.
The symptoms are that on the linux file system two different directories exist that are only distinguishable by case sensitivity. That causes the problem that a Windows client can not access the directories properly.
These parameters in the smb.conf make it a little bit better.

Code: Select all

case sensitive = yes
case preserve = no
short preserve case = no
But the root problem for me is, why is the directory "/Name of the TV Series/Season 01/..." created when there already exist a directory "/Name Of The TV Series/Season 01/..." ?
Can Sabnzbd not put the new content in the "old" directory if only the case sensitivity is different?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Series Sorting: case sensitivity problem

Post by sander »

zion2k wrote: October 2nd, 2018, 6:51 am
But the root problem for me is, why is the directory "/Name of the TV Series/Season 01/..." created when there already exist a directory "/Name Of The TV Series/Season 01/..." ?
Can Sabnzbd not put the new content in the "old" directory if only the case sensitivity is different?
I understand that that is the root problem for you, but that is how it works on Linux: case does matter. It's a feature ... ;)

Changing that in SAB or a post-processing script is error prone.

Just a long shot: what if you mount a NTFS or exFAT filesytem, and let Linux write to that, so:

Code: Select all

touch /my/NTFSmount/blabla
touch /my/NTFSmount/BLABLA
touch /my/NTFSmount/BLAbla
... what is the result? Three files, or one file?
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Series Sorting: case sensitivity problem

Post by safihre »

We could improve this in SABnzbd though.
See if there's a match if we lowercase all names, if so, then use that name (in it's original case).
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply