Changeset 20150


Ignore:
Timestamp:
02/22/13 13:55:19 (11 years ago)
Author:
obi
Message:

fix record

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r20137 r20150  
    20432043}
    20442044
    2045 
    20462045//flag 0: del non alpha/num
    20472046//flag 1: change all /
     2047//flag 2: change all non filename conform chars
    20482048void delspezchar(char* text, int flag)
    20492049{
     
    20542054        while(*tmpstr != '\0')
    20552055        {
    2056                 if(flag == 1)
    2057                 {
    2058                         if(tmpstr[0] == '/')
    2059                                 tmpstr[0] = '-';
     2056                if(flag == 1 || flag == 2)
     2057                {
     2058                        if(tmpstr[0] == '/') tmpstr[0] = '-';
     2059                        if(flag == 2)
     2060                        {
     2061                                if(tmpstr[0] == '§') tmpstr[0] = '-';
     2062                                if(tmpstr[0] == '<') tmpstr[0] = '-';
     2063                                if(tmpstr[0] == '>') tmpstr[0] = '-';
     2064                                if(tmpstr[0] == ':') tmpstr[0] = '-';
     2065                                if(tmpstr[0] == '"') tmpstr[0] = '-';
     2066                                if(tmpstr[0] == '\') tmpstr[0] = '-';
     2067                                if(tmpstr[0] == '|') tmpstr[0] = '-';
     2068                                if(tmpstr[0] == '*') tmpstr[0] = '-';
     2069                                if(tmpstr[0] == '?') tmpstr[0] = '-';
     2070                                if(tmpstr[0] == '[') tmpstr[0] = '-';
     2071                                if(tmpstr[0] == ']') tmpstr[0] = '-';
     2072                                if(tmpstr[0] == '=') tmpstr[0] = '-';
     2073                                if(tmpstr[0] == '%') tmpstr[0] = '-';
     2074                                if(tmpstr[0] == '$') tmpstr[0] = '-';
     2075                                if(tmpstr[0] == ',') tmpstr[0] = '-';
     2076                                if(tmpstr[0] == ';') tmpstr[0] = '-';
     2077                                if(tmpstr[0] == '~') tmpstr[0] = '-';
     2078                        }
    20602079                }
    20612080                else
  • titan/titan/record.h

    r20147 r20150  
    782782                        {
    783783                                chname = strstrip(chnode->name);
    784                                 delspezchar(chname, 1);
     784                                delspezchar(chname, 2);
    785785                        }
    786786                        if(rectimernode != NULL && rectimernode->name != NULL)
    787787                        {
    788788                                moviename = strstrip(rectimernode->name);
    789                                 delspezchar(moviename, 1);
     789                                delspezchar(moviename, 2);
    790790                        }
    791791                        break;
     
    796796                        {
    797797                                chname = strstrip(chnode->name);
    798                                 delspezchar(chname, 1);
     798                                delspezchar(chname, 2);
    799799                        }
    800800                        epgnode = getepgbytime(status.aktservice->channel, time(NULL) + 60);
     
    802802                        {
    803803                                moviename = strstrip(epgnode->title);
    804                                 delspezchar(moviename, 1);
     804                                delspezchar(moviename, 2);
    805805                        }
    806806                        break;
Note: See TracChangeset for help on using the changeset viewer.