Page 1 of 1

Series Sorting: case sensitivity problem

Posted: October 1st, 2018, 5:32 pm
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.

Re: Series Sorting: case sensitivity problem

Posted: October 2nd, 2018, 2:11 am
by sander
Looks like a Windows-Samba-Linux problem to me. Does this help: https://serverfault.com/questions/70570 ... re-enabled

Re: Series Sorting: case sensitivity problem

Posted: October 2nd, 2018, 6:51 am
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?

Re: Series Sorting: case sensitivity problem

Posted: October 2nd, 2018, 7:16 am
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?

Re: Series Sorting: case sensitivity problem

Posted: October 2nd, 2018, 7:27 am
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).