Changeset 32835


Ignore:
Timestamp:
02/03/15 20:08:14 (9 years ago)
Author:
obi
Message:

add strip () strings for new record name for imdb search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/mediadb.h

    r32756 r32835  
    15261526        }
    15271527        free(tmpstr1), tmpstr1 = NULL;
    1528        
     1528
    15291529        if(*isrec == 0 && *iscam == 0)
    15301530        {
     
    15441544                strstrip(shortname);
    15451545        }
     1546
     1547printf("###### strip () strings start ############################################\n");
     1548
     1549// strip () strings
     1550// for (channel)-movie-(..).ts name
     1551        tmpstr1 = string_resub("(", ")", tmpstr, 0);
     1552        if(tmpstr1 != NULL)
     1553        {
     1554printf("found recnew filename strip (channel)-movie-(..).ts name from: %s\n", tmpstr);
     1555                tmpstr1 = ostrcat("(", tmpstr1, 0, 1);
     1556                tmpstr1 = ostrcat(tmpstr1, ")", 1, 0);
     1557printf("showrname: %s\n", showrname);
     1558printf("tmpstr1: %s\n", tmpstr1);
     1559                shortname = string_replace(tmpstr1, "", shortname, 1);
     1560printf("shortname stripped: %s\n", shortname);
     1561printf("--------------------------------------------------\n");
     1562                if(fileinfo != NULL)
     1563                        fileinfo = ostrcat(fileinfo, " ", 1, 0);
     1564                fileinfo = ostrcat(fileinfo, "recnew", 1, 0);
     1565                *isrec = 0;
     1566                *iscam = 0;
     1567        }
     1568        free(tmpstr1); tmpstr1 = NULL;
     1569
     1570// for movie-(channel-...).ts name
     1571        tmpstr1 = string_resub("(", ")", tmpstr, 0);
     1572        if(tmpstr1 != NULL)
     1573        {
     1574printf("found recnew filename strip movie-(channel-...).ts name from: %s\n", tmpstr);
     1575                tmpstr1 = ostrcat("(", tmpstr1, 0, 1);
     1576                tmpstr1 = ostrcat(tmpstr1, ")", 1, 0);
     1577printf("shortname: %s\n", shortname);
     1578printf("tmpstr1: %s\n", tmpstr1);
     1579                shortname = string_replace(tmpstr1, "", shortname, 1);
     1580printf("shortname stripped: %s\n", shortname);
     1581printf("--------------------------------------------------\n");
     1582                if(fileinfo != NULL)
     1583                        fileinfo = ostrcat(fileinfo, " ", 1, 0);
     1584                fileinfo = ostrcat(fileinfo, "recnew", 1, 0);
     1585                *isrec = 0;
     1586                *iscam = 0;
     1587        }
     1588        free(tmpstr1); tmpstr1 = NULL;
     1589// end
     1590printf("###### strip () strings end ############################################\n");
    15461591
    15471592        string_tolower(tmpstr);
Note: See TracChangeset for help on using the changeset viewer.