Changeset 36961
- Timestamp:
- 01/26/16 04:07:55 (8 years ago)
- Location:
- titan
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localparser_secret/bs.sh
r36960 r36961 185 185 j = index(substr($0, i), "</a>") - 1 186 186 title = substr($0, i, j) 187 print title "#" SRC " " SRC " video " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#0" 187 # print title "#" SRC " " SRC " video " url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#0" 188 print SRC " " SRC " video " url 188 189 } 189 190 next … … 214 215 j = index(substr($0, i), "\"") - 1 215 216 url = substr($0, i, j) 216 print "Originalvideo#" url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#14" 217 218 i = index($0, "<a href=\"") + 16 219 j = index(substr($0, i), "/") - 1 220 title = substr($0, i, j) 221 222 # print "Originalvideo#" url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#14" 223 print title "#" url "#http://atemio.dyndns.tv/mediathek/menu/" title ".jpg#" title ".jpg#" NAME "#14" 217 224 } 218 225 next … … 224 231 225 232 ' >/tmp/tithek/$PARSER.video.list 226 echo"/tmp/tithek/$PARSER.video.list"233 cat "/tmp/tithek/$PARSER.video.list" 227 234 } 228 235 -
titan/plugins/tithek/giga.h
r36184 r36961 4 4 char* giga(char* link) 5 5 { 6 int debuglevel = getconfigint("debuglevel", NULL);6 // int debuglevel = getconfigint("debuglevel", NULL); 7 7 char* streamurl = NULL, *tmpstr = NULL, *title = NULL, *pic = NULL, *label = NULL; 8 8 -
titan/plugins/tithek/movie2k.h
r36159 r36961 6 6 debug(99, "link: %s", link); 7 7 int debuglevel = getconfigint("debuglevel", NULL); 8 char* tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *url = NULL, *streamurl = NULL, *tmp path = NULL, *tmphost = NULL, *pos= NULL;8 char* tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *url = NULL, *streamurl = NULL, *tmphost = NULL; 9 9 titheklog(debuglevel, "/tmp/movie2k_streamurl_url0", NULL, NULL, NULL, link); 10 10 -
titan/plugins/tithek/nbastream.h
r36208 r36961 189 189 streamurl = ostrcat(streamurl, "|User-Agent=libcurl-agent/1.0|Referer=http://cdn.p2pcast.tv/jwplayer.flash.swf", 1, 0); 190 190 191 end:191 //end: 192 192 193 193 free(tmpstr), tmpstr = NULL; -
titan/plugins/tithek/streamlive.h
r36186 r36961 21 21 22 22 char* streamurl1 = NULL; 23 char* title = NULL;24 char* pic = NULL;23 // char* title = NULL; 24 // char* pic = NULL; 25 25 char* typemsg = NULL; 26 26 -
titan/plugins/tithek/tithek.h
r36938 r36961 445 445 446 446 // if(cmpfilenameext(filename, ".sh") == 0) 447 if(ostrstr(filename, ".sh ") != NULL && ostrstr(filename, ".sh init") == NULL )447 if(ostrstr(filename, ".sh ") != NULL && ostrstr(filename, ".sh init") == NULL && ostrstr(filename, ".sh video") == NULL) 448 448 { 449 449 printf("[tithek] cmd: %s\n", filename); … … 454 454 debug(10, "file: %s", file); 455 455 } 456 else if(ostrstr(filename, ".sh video") != NULL) 457 { 458 printf("[tithek] video..... cmd: %s\n", filename); 459 debug(10, "cmd: %s", filename); 460 file = command(filename); 461 file = string_newline(file); 462 printf("[tithek] file: %s\n", file); 463 debug(10, "file: %s", file); 464 } 456 465 else 457 466 file = ostrcat(filename, NULL, 0, 0); … … 467 476 pay = getconfigint("tithek_pay", NULL); 468 477 478 char* tmpstr = NULL; 479 469 480 while(fgets(fileline, MINMALLOC, fd) != NULL) 470 481 { 471 482 if(fileline[0] == '\n') 472 483 continue; 473 len = strlen(fileline) - 1; 474 if(fileline[len] == '\n') 475 fileline[len] = '\0'; 476 if(fileline[len - 1] == '\r') 477 fileline[len - 1] = '\0'; 478 484 485 if(ostrstr(filename, ".sh hoster") != NULL) 486 { 487 printf("[tithek] hoster fileline: %s\n", fileline); 488 tmpstr = command(fileline); 489 printf("[tithek] hoster tmpstr: %s\n", tmpstr); 490 491 len = strlen(tmpstr) - 1; 492 if(tmpstr[len] == '\n') 493 tmpstr[len] = '\0'; 494 if(tmpstr[len - 1] == '\r') 495 tmpstr[len - 1] = '\0'; 496 } 497 else 498 { 499 len = strlen(fileline) - 1; 500 if(fileline[len] == '\n') 501 fileline[len] = '\0'; 502 if(fileline[len - 1] == '\r') 503 fileline[len - 1] = '\0'; 504 } 479 505 linecount++; 480 506 481 507 if(last == NULL) last = tmplast; 482 last = addtithek(fileline, len + 2, linecount, last, pay); 508 if(ostrstr(filename, ".sh hoster") != NULL) 509 last = addtithek(tmpstr, len + 2, linecount, last, pay); 510 else 511 last = addtithek(fileline, len + 2, linecount, last, pay); 483 512 if(last != NULL) tmplast = last; 513 free(tmpstr), tmpstr = NULL; 484 514 } 485 515 -
titan/plugins/tithek/tithek_header.h
r36254 r36961 8 8 void amazon_deinit(); 9 9 void localscript_init(char* titheklink, char* tithekfile); 10 int b64dec(char* dest, char* src); 10 11 11 12 void titheklog(int debuglevel, char* name1, char* name2, char* name3, char* name4, char* content)
Note: See TracChangeset
for help on using the changeset viewer.