Changeset 19339


Ignore:
Timestamp:
12/28/12 13:55:36 (11 years ago)
Author:
nit
Message:

[titan] update extended epg

Location:
titan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • titan/settings/extepg

    r19317 r19339  
    1 #transponderid#type#channelpid#titlepid#summarypid#file
     1#transponderid#type#file#channelpid#titlepid1#titlepid2#titlepid3#titlepid4#titlepid5#titlepid6#titlepid7#titlepid8#summarypid1#summarypid2#summarypid3#summarypid4#summarypid5#summarypid6#summarypid7#summarypid8
    22#transponderid 0=all transponder
    33
    44#mhw
    5 0#0#-#211#210#211
     50#0#-#211#210#-1#-1#-1#-1#-1#-1#-1#211#-1#-1#-1#-1#-1#-1#-1
    66
    77#mhw2
    8 0#1#-#561#564#566
     80#1#-#561#564#-1#-1#-1#-1#-1#-1#-1#566#-1#-1#-1#-1#-1#-1#-1
    99
    1010#skyit 13.2
    11 4227802696#2#/var/etc/titan/skyit.dict#17#48#64
     114227802696#2#/var/etc/titan/skyit.dict#17#48#49#50#51#52#53#54#55#64#65#66#67#68#69#70#71
    1212
    1313#skyuk 28.2
    14 133076#2#/var/etc/titan/skyuk.dict#17#48#64
     14133076#2#/var/etc/titan/skyuk.dict#17#48#49#50#51#52#53#54#55#64#65#66#67#68#69#70#71
    1515
    1616#skyuk 28.4
    17 133076#2#/var/etc/titan/skyuk.dict#17#48#64
     17133076#2#/var/etc/titan/skyuk.dict#17#48#49#50#51#52#53#54#55#64#65#66#67#68#69#70#71
  • titan/titan/extepg.h

    r19331 r19339  
    662662        }
    663663
    664         ret = sscanf(line, "%llu#%d#%[^#]#%d#%d#%d", &newnode->transponderid, &newnode->type, file, &newnode->channelpid, &newnode->titlepid, &newnode->summarypid);
    665         if(ret != 6)
     664        ret = sscanf(line, "%llu#%d#%[^#]#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d#%d", &newnode->transponderid, &newnode->type, file, &newnode->channelpid, \
     665                &newnode->titlepid[0], &newnode->titlepid[1], &newnode->titlepid[2], &newnode->titlepid[3], \
     666                &newnode->titlepid[4], &newnode->titlepid[5], &newnode->titlepid[6], &newnode->titlepid[7], \
     667                &newnode->summarypid[0], &newnode->summarypid[1], &newnode->summarypid[2], &newnode->summarypid[3], \
     668                &newnode->summarypid[4], &newnode->summarypid[5], &newnode->summarypid[6], &newnode->summarypid[7]);
     669        if(ret != 20)
    666670        {
    667671                if(count > 0)
     
    12131217int readmhw(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag)
    12141218{
    1215         int ret = 0, channelcount = 0;
     1219        int ret = 0, channelcount = 0, i = 0;
    12161220        unsigned char* channelbuf = NULL;
    12171221        struct extepgconfig* extepgconfignode = NULL;
     
    12531257        }
    12541258
    1255         ret = readmhwtitle(self, fenode, chnode, channelbuf, channelcount, extepgconfignode->titlepid, flag);
     1259        ret = 1;
     1260        for(i = 0; i < 8; i++)
     1261        {
     1262                if(i < 0) continue;
     1263                if(self->aktion == STOP || self->aktion == PAUSE) break;
     1264                int tmpret = readmhwtitle(self, fenode, chnode, channelbuf, channelcount, extepgconfignode->titlepid[i], flag);
     1265                if(tmpret == 0) ret = 0;
     1266        }
    12561267        if(ret != 0 || self->aktion == STOP || self->aktion == PAUSE)
    12571268        {
     
    12611272        }
    12621273
    1263         ret = readmhwsummary(self, fenode, extepgconfignode->summarypid);
     1274        ret = 1;
     1275        for(i = 0; i < 8; i++)
     1276        {
     1277                if(i < 0) continue;
     1278                if(self->aktion == STOP || self->aktion == PAUSE) break;
     1279                int tmpret = readmhwsummary(self, fenode, extepgconfignode->summarypid[i]);
     1280                if(tmpret == 0) ret = 0;
     1281        }
    12641282        if(ret != 0 || self->aktion == STOP || self->aktion == PAUSE)
    12651283        {
     
    17021720int readmhw2(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag)
    17031721{
    1704         int ret = 0;
     1722        int ret = 0, i = 0;
    17051723        unsigned char* channelbuf = NULL;
    17061724        struct extepgconfig* extepgconfignode = NULL;
     
    17421760        }
    17431761
    1744         ret = readmhw2title(self, fenode, chnode, channelbuf, extepgconfignode->titlepid, flag);
     1762        ret = 1;
     1763        for(i = 0; i < 8; i++)
     1764        {
     1765                if(i < 0) continue;
     1766                if(self->aktion == STOP || self->aktion == PAUSE) break;
     1767                int tmpret = readmhw2title(self, fenode, chnode, channelbuf, extepgconfignode->titlepid[i], flag);
     1768                if(tmpret == 0) ret = 0;
     1769        }
    17451770        if(ret != 0 || self->aktion == STOP || self->aktion == PAUSE)
    17461771        {
     
    17501775        }
    17511776
    1752         ret = readmhw2summary(self, fenode, extepgconfignode->summarypid);
     1777        ret = 1;
     1778        for(i = 0; i < 8; i++)
     1779        {
     1780                if(i < 0) continue;
     1781                if(self->aktion == STOP || self->aktion == PAUSE) break;
     1782                int tmpret = readmhw2summary(self, fenode, extepgconfignode->summarypid[i]);
     1783                if(tmpret == 0) ret = 0;
     1784        }
    17531785        if(ret != 0 || self->aktion == STOP || self->aktion == PAUSE)
    17541786        {
     
    22622294int readopentv(struct stimerthread* self, struct channel* chnode, struct dvbdev* fenode, int flag)
    22632295{
    2264         int ret = 0;
     2296        int ret = 0, i = 0;
    22652297        unsigned char* channelbuf = NULL;
    22662298        struct extepgconfig* extepgconfignode = NULL;
     
    23092341        }
    23102342
    2311         ret = readopentvtitle(self, fenode, chnode, channelbuf, extepgconfignode->titlepid, flag);
     2343        ret = 1;
     2344        for(i = 0; i < 8; i++)
     2345        {
     2346                if(i < 0) continue;
     2347                if(self->aktion == STOP || self->aktion == PAUSE) break;
     2348                int tmpret = readopentvtitle(self, fenode, chnode, channelbuf, extepgconfignode->titlepid[i], flag);
     2349                if(tmpret == 0) ret = 0;
     2350        }
    23122351        if(ret != 0 || self->aktion == STOP || self->aktion == PAUSE)
    23132352        {
     
    23172356        }
    23182357
    2319         ret = readopentvsummary(self, fenode, extepgconfignode->summarypid);
     2358        ret = 1;
     2359        for(i = 0; i < 8; i++)
     2360        {
     2361                if(i < 0) continue;
     2362                if(self->aktion == STOP || self->aktion == PAUSE) break;
     2363                int tmpret = readopentvsummary(self, fenode, extepgconfignode->summarypid[i]);
     2364                if(tmpret == 0) ret = 0;
     2365        }
    23202366        if(ret != 0 || self->aktion == STOP || self->aktion == PAUSE)
    23212367        {
  • titan/titan/struct.h

    r19309 r19339  
    16451645        char* file;
    16461646        int channelpid;
    1647         int titlepid;
    1648         int summarypid;
     1647        int titlepid[8];
     1648        int summarypid[8];
    16491649        struct extepgconfig* next;
    16501650};
Note: See TracChangeset for help on using the changeset viewer.