Changeset 22173 for titan/plugins/tithek/movie4k.h
- Timestamp:
- 06/30/13 20:01:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/movie4k.h
r22150 r22173 220 220 { 221 221 drawscreen(load, 0, 0); 222 char* hname = NULL; 223 char* hnr = NULL; 224 char* hlink = NULL; 225 char* id = NULL; 222 char* hname = NULL; 223 char* hnr = NULL; 224 char* hlink = NULL; 225 char* id = NULL; 226 char* logfile = NULL; 227 228 char* nolinks = NULL; 229 if(ostrstr(tmpstr, "links\[") == NULL) 230 { 231 // printf("found no links !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1\n"); 232 hname = string_resub("width=\"16\"> ", "</a></td><td align=", tmpstr, 0); 233 nolinks = ostrcat(tmpstr, NULL, 0, 0); 226 234 227 char* nolinks = NULL; 228 if(ostrstr(tmpstr, "links\[") == NULL) 229 { 230 printf("found no links !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1\n"); 231 hname = string_resub("width=\"16\"> ", "</a></td><td align=", tmpstr, 0); 232 nolinks = ostrcat(tmpstr, NULL, 0, 0); 233 234 printf("hname: %s\n", hname); 235 } 235 printf("hname: %s\n", hname); 236 } 236 237 237 238 239 240 241 242 243 238 int count = 0; 239 int incount = 0; 240 int i; 241 struct splitstr* ret1 = NULL; 242 ret1 = strsplit(tmpstr, "\n", &count); 243 244 // printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1\n"); 244 245 245 246 if(ret1 != NULL && count > 0) … … 253 254 if((!ostrncmp("links", ret1[i].part, 5) && nolinks == NULL) || nolinks != NULL) 254 255 { 255 printf("######################################1\n");256 char* logfile = NULL; 256 // printf("######################################1\n"); 257 257 258 if(nolinks == NULL) 258 259 { … … 260 261 hname = string_resub(" ", "</a", ret1[i].part, 0); 261 262 id = string_resub("online-film-", ".html", pathnew, 0); 263 if(id == NULL) 264 id = string_resub("watch-movie-", ".html", pathnew, 0); 262 265 263 266 logfile = ostrcat("/tmp/movie4k4_pathnew1", id, 0, 0); … … 277 280 tmpstr1 = ostrcat(nolinks, NULL, 0, 0); 278 281 id = string_resub("online-film-", ".html", path, 0); 282 if(id == NULL) 283 id = string_resub("watch-movie-", ".html", path, 0); 284 279 285 } 280 286 logfile = ostrcat("/tmp/movie4k5_tmpstr1", id, 0, 0); … … 323 329 if(id != NULL) 324 330 { 325 printf("--------------------------------------1\n");331 // printf("--------------------------------------1\n"); 326 332 327 333 if(countj >= 2) 328 334 { 329 printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1\n");335 // printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1\n"); 330 336 pathnew = ostrcat("movie.php?id=", id, 0, 0); 331 337 pathnew = ostrcat(pathnew, "&part=2", 1, 0); … … 362 368 if(countj >= 3) 363 369 { 364 printf("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1\n");370 // printf("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1\n"); 365 371 pathnew = ostrcat("movie.php?id=", id, 0, 0); 366 372 pathnew = ostrcat(pathnew, "&part=3", 1, 0); … … 397 403 if(countj >= 4) 398 404 { 399 printf("ccccccccccccccccccccccccccccccccccccccccccc1\n");405 // printf("ccccccccccccccccccccccccccccccccccccccccccc1\n"); 400 406 pathnew = ostrcat("movie.php?id=", id, 0, 0); 401 407 pathnew = ostrcat(pathnew, "&part=4", 1, 0); … … 924 930 free(url4), url4 = NULL; 925 931 free(pathnew), pathnew = NULL; 926 // free(id), id= NULL;932 free(logfile), logfile = NULL; 927 933 } 928 934 // }
Note: See TracChangeset
for help on using the changeset viewer.