Changeset 23662
- Timestamp:
- 09/11/13 22:22:29 (11 years ago)
- Location:
- titan/titan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/channellist.h
r23206 r23662 915 915 textbox(_("Message"), _("Copy providerlist not ok"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0); 916 916 } 917 else if(list == SATLIST) 918 { 919 if(sat2bouquet(((struct sat*)listbox->select->handle1)->orbitalpos) == 0) 920 textbox(_("Message"), _("Copy providerlist successfull"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0); 921 else 922 textbox(_("Message"), _("Copy providerlist not ok"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0); 923 } 917 924 else 918 925 { -
titan/titan/header.h
r23307 r23662 383 383 int movesatdown(struct sat* node); 384 384 int movesatup(struct sat* node); 385 int sat2bouquet(int orbitalpos); 385 386 386 387 //provider.h -
titan/titan/listedit.h
r23185 r23662 39 39 protectmode->hidden = YES; 40 40 } 41 if(list == PROVIDERLIST)41 if(list == SATLIST || list == PROVIDERLIST) 42 42 cpmode->hidden = NO; 43 43 if(list == MAINBOUQUETLIST) -
titan/titan/sat.h
r23286 r23662 472 472 } 473 473 474 int sat2bouquet(int orbitalpos) 475 { 476 struct sat* snode = NULL; 477 struct mainbouquet* mnode = NULL; 478 struct channel* chnode = channel; 479 char* tmpstr = NULL; 480 char* path = NULL; 481 482 snode = getsatbyorbitalpos(orbitalpos); 483 if(snode == NULL) return 1; 484 485 tmpstr = ostrcat(tmpstr, snode->name, 1, 0); 486 tmpstr = ostrcat(tmpstr, "#", 1, 0); 487 tmpstr = ostrcat(tmpstr, oitoa(status.servicetype), 1, 1); 488 tmpstr = ostrcat(tmpstr, "#", 1, 0); 489 490 path = realpath(getconfig("bouquetfile", NULL), NULL); 491 if(path != NULL) 492 { 493 path = dirname(path); 494 path = ostrcat(path, "/bouquets.", 1, 0); 495 496 path = ostrcat(path, snode->name, 1, 0); 497 if(status.servicetype == 0) path = ostrcat(path, "_tv", 1, 0); 498 if(status.servicetype == 1) path = ostrcat(path, "_radio", 1, 0); 499 500 if(file_exist(path)) 501 { 502 free(tmpstr); tmpstr = NULL; 503 free(path); path = NULL; 504 return 1; 505 } 506 507 tmpstr = ostrcat(tmpstr, path, 1, 0); 508 mnode = addmainbouquet(tmpstr, 1, NULL); 509 } 510 free(tmpstr); tmpstr = NULL; 511 free(path); path = NULL; 512 513 if(mnode != NULL) 514 { 515 while(chnode != NULL) 516 { 517 if(chnode->transponder != NULL && chnode->transponder->orbitalpos == orbitalpos && chnode->servicetype == status.servicetype) 518 { 519 tmpstr = ostrcat(tmpstr, oitoa(chnode->serviceid), 1, 1); 520 tmpstr = ostrcat(tmpstr, "#", 1, 0); 521 tmpstr = ostrcat(tmpstr, ollutoa(chnode->transponderid), 1, 1); 522 addbouquet(&mnode->bouquet, tmpstr, status.servicetype, 1, NULL); 523 free(tmpstr); tmpstr = NULL; 524 } 525 chnode = chnode->next; 526 } 527 } 528 529 return 0; 530 } 531 474 532 int writesat(const char *filename) 475 533 {
Note: See TracChangeset
for help on using the changeset viewer.