Changeset 44530 for titan/titan/global.h


Ignore:
Timestamp:
01/16/20 15:12:00 (3 years ago)
Author:
obi
Message:

fix tpk building

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r44303 r44530  
    81848184}
    81858185
    8186 int update_iptv(char* file)
    8187 {
    8188         char* tmpstr = NULL, *link = NULL;
    8189         int ret = 0;
    8190 
    8191         tmpstr = dirname(file);
    8192         link = getconfig("iptvserver", NULL);
    8193 
    8194         if(link != NULL)
    8195         {
    8196                 debug(10, "update %s", link);
    8197 
    8198                 if(!file_exist(tmpstr))
    8199                         mkdir(tmpstr, 0777);
    8200 
    8201                 tmpstr = ostrcat(tmpstr, "/iptv.m3u", 1, 0);
    8202                 if(file_exist(tmpstr))
    8203                         unlink(tmpstr);
    8204 
    8205                 if(!file_exist(tmpstr))
    8206                         gethttps(link, tmpstr, NULL, NULL, NULL, NULL, 0);
    8207 
    8208                 if(file_exist(tmpstr)) ret = 1;
    8209 
    8210         }
    8211 
    8212         free(tmpstr), tmpstr = NULL;
    8213         free(link), link = NULL;
    8214 
    8215         return ret;
    8216 }
    8217 
    82188186#endif
Note: See TracChangeset for help on using the changeset viewer.