Changeset 39971 for titan/plugins/tithek


Ignore:
Timestamp:
02/10/17 13:30:23 (7 years ago)
Author:
obi
Message:

optimize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r39969 r39971  
    14871487        if(ostrstr(tmpstr1, "&") != NULL)
    14881488        {
    1489                 printf("change streamurl from: %s\n", tmpstr1);
     1489                debug(99, "change streamurl from: %s", tmpstr1);
    14901490                tmpstr1 = string_replace_all("&", "&", tmpstr1, 1);
    1491                 printf("change streamurl to: %s\n", tmpstr1);
    1492         }
    1493 
    1494 //      printf("tmpstr1: %s\n", tmpstr1);
     1491                debug(99, "change streamurl to: %s", tmpstr1);
     1492        }
    14951493
    14961494        if(!ostrncmp("errormsg=", tmpstr1, 9))
    14971495        {
    1498 //              tmpstr2 = string_resub("errormsg='", "'", tmpstr1, 0); 
    1499 //              tmpstr = ostrcat(_("Found error Msg:"), "\n\n", 0, 0);
    1500 //              tmpstr = ostrcat(tmpstr, tmpstr2, 1, 0);
    1501 
    1502                 tmpstr1 = string_replace_all("errormsg=", "", tmpstr1, 1);
    1503 
    1504                 printf("Found error Msg: %s\n", tmpstr1);
    1505                 textbox(_("Message"), tmpstr1, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 0);
    1506 //              free(tmpstr); tmpstr = NULL;
     1496                tmpstr = ostrcat(_("Found error Msg:"), "\n\n", 0, 0);
     1497                tmpstr = ostrcat(tmpstr, tmpstr1, 1, 0);
     1498                tmpstr = string_replace("errormsg=", "", tmpstr, 1);
     1499
     1500                debug(99, "Found error Msg: %s", tmpstr1);
     1501                textbox(_("Message"), tmpstr, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
     1502                free(tmpstr); tmpstr = NULL;
    15071503                free(tmpstr1); tmpstr1 = NULL;
    1508 //              free(tmpstr2); tmpstr2 = NULL;
    15091504        }
    15101505        else if(ostrncmp("http", tmpstr1, 4) && ostrncmp("rtmp", tmpstr1, 4) && ostrncmp("mms", tmpstr1, 3) && ostrncmp("rtsp", tmpstr1, 4))
     
    15121507                tmpstr = ostrcat(_("Parsing Error cant find http*|rtmp*|mms*|rtsp* Stream Link"), "\n\n", 0, 0);
    15131508                tmpstr = ostrcat(tmpstr, tmpstr1, 1, 0);
    1514                 printf("Parsing Error cant find http*|rtmp*|mms*|rtsp* Stream Link: %s\n", tmpstr1);
    1515                 textbox(_("Message"), tmpstr, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 600, 0, 0);
     1509                debug(99, "Parsing Error cant find http*|rtmp*|mms*|rtsp* Stream Link: %s", tmpstr1);
     1510                textbox(_("Message"), tmpstr, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1100, 600, 0, 0);
    15161511                free(tmpstr); tmpstr = NULL;
    15171512                free(tmpstr1); tmpstr1 = NULL;
Note: See TracChangeset for help on using the changeset viewer.