Naming issue on TV shows

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
auskento
Moderator
Moderator
Posts: 77
Joined: January 21st, 2008, 8:45 pm
Location: Melbourne, AUS

Naming issue on TV shows

Post by auskento »

Since i updated from 0.4.4 to 0.4.5 RC2, I have had the following strangeness with TV show naming.

The colon becomes a semi-colon.  It isn't the end of the world or anything, just annoying due to the way i move and sort shows for storage.
Last edited by Anonymous on November 26th, 2008, 9:11 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Naming issue on TV shows

Post by shypike »

We have to map the colon to another character, because it's not allowed in folder/file names.
We used to map everything to underscore, but now we try to map to something
that looks more or less the same (so ':' --> ';').
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Naming issue on TV shows

Post by switch »

Not a fan of this either, I use the following change in misc.py sanitise_filename():

After "for ch in name.strip():" add:

Code: Select all

        if ch == ':':
            continue
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Naming issue on TV shows

Post by shypike »

http://trac2.assembla.com/SABnzbd/ticket/177
Done, will be available in 0.4.6
Last edited by shypike on November 5th, 2008, 2:29 pm, edited 1 time in total.
Post Reply