Changeset 40893 for titan/plugins/tithek/kinox.h
- Timestamp:
- 09/02/17 21:42:56 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/kinox.h
r40864 r40893 359 359 mirrormax = atoi(mirrormaxtmp); 360 360 361 debug(99, "### START ####################################################"); 362 361 363 for(j = 1; j < mirrormax + 1; j++) 362 364 { … … 366 368 367 369 hlink = string_resub("rel=\"", "amp;Mirror", ret1[i].part, 0); 368 hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1); 369 hlink = ostrcat(hlink, "Mirror=", 0, 0); 370 371 hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0); 372 pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0); 373 374 pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1); 370 371 if (hlink == NULL) 372 { 373 hlink = string_resub("rel=\"", "\">", ret1[i].part, 0); 374 hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1); 375 hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0); 376 pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0); 377 pathnew = ostrcat(pathnewtmp, NULL, 0, 0); 378 } 379 else 380 { 381 hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1); 382 hlink = ostrcat(hlink, "Mirror=", 0, 0); 383 hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0); 384 pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0); 385 pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1); 386 } 375 387 debug(99, "(%d/%d) (%d/%d)hnr: %s hlink: %s hname: %s pathnewtmp: %s",i ,max ,j ,mirrormax ,hnr ,hlink ,hname ,pathnewtmp); 376 388 free(pathnewtmp), pathnewtmp= NULL; … … 491 503 492 504 debug(99, "-------------------------------"); 493 if(ostrcmp(url, url2) != 0)494 {495 debug(99, "(%d/%d) (%d/%d) %s (Part1) url: %s extra: %s",i ,max ,j ,mirrormax ,hname ,url ,extra);496 }497 else498 {505 // if(ostrcmp(url, url2) != 0) 506 // { 507 // debug(99, "(%d/%d) (%d/%d) %s (Part1) url: %s extra: %s",i ,max ,j ,mirrormax ,hname ,url ,extra); 508 // } 509 // else 510 // { 499 511 debug(99, "(%d/%d) (%d/%d) %s url: %s extra: %s",i ,max ,j ,mirrormax ,hname ,url ,extra); 500 } 512 // } 513 debug(99, "-------------------------------"); 501 514 502 515 incount += 1; … … 664 677 free(extra), extra = NULL; 665 678 } 679 debug(99, "### END #####################################################"); 666 680 } 667 681 } … … 792 806 free(mirrormaxtmp), mirrormaxtmp= NULL; 793 807 808 debug(99, "### START ####################################################"); 809 794 810 for(j = 1; j < mirrormax + 1; j++) 795 811 { … … 798 814 hnr = string_resub("<li id=\"Hoster_", "\"", ret1[i].part, 0); 799 815 816 // hlink = string_resub("rel=\"", "amp;Mirror", ret1[i].part, 0); 817 // hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1); 818 // hlink = ostrcat(hlink, "Mirror=", 0, 0); 819 820 ////////// 800 821 hlink = string_resub("rel=\"", "amp;Mirror", ret1[i].part, 0); 801 hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1); 802 hlink = ostrcat(hlink, "Mirror=", 0, 0); 803 822 823 if (hlink == NULL) 824 { 825 hlink = string_resub("rel=\"", "\">", ret1[i].part, 0); 826 hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1); 827 hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0); 828 pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0); 829 pathnew = ostrcat(pathnewtmp, NULL, 0, 0); 830 } 831 else 832 { 833 hlink = string_replace_all("amp;Hoster", "Hoster", hlink, 1); 834 hlink = ostrcat(hlink, "Mirror=", 0, 0); 835 hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0); 836 pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0); 837 pathnew = ostrcat(pathnewtmp, oitoa(j), 0, 1); 838 } 839 debug(99, "(%d/%d) (%d/%d)hnr: %s hlink: %s hname: %s pathnewtmp: %s",i ,max ,j ,mirrormax ,hnr ,hlink ,hname ,pathnewtmp); 840 free(pathnewtmp), pathnewtmp= NULL; 841 ////////// 804 842 hname = string_resub("<div class=\"Named\">", "</div>", ret1[i].part, 0); 805 843 pathnewtmp = ostrcat("/aGET/Mirror/", hlink, 0, 0); … … 826 864 hlink = string_replace("http://kinox.me/Stream/", "", hlink, 1); 827 865 828 debug(99, "pathnew: %s", pathnew);866 // debug(99, "pathnew: %s", pathnew); 829 867 tmpstr1 = gethttp("kinox.me", pathnew, 80, NULL, NULL, 10000, NULL, 0); 830 debug(99, "tmpstr1 1: %s", tmpstr1);868 // debug(99, "tmpstr1 1: %s", tmpstr1); 831 869 832 870 tmpstr1 = string_replace_all("\\", "", tmpstr1, 1); 833 debug(99, "tmpstr1 2: %s", tmpstr1);871 // debug(99, "tmpstr1 2: %s", tmpstr1); 834 872 835 873 if(ostrstr(tmpstr1, "<iframe src=") != NULL) 836 874 { 837 875 url = string_resub("<iframe src=\"", "\"", tmpstr1, 0); 838 debug(99, "iframe1.1 url: %s", url);876 // debug(99, "iframe1.1 url: %s", url); 839 877 } 840 878 else if(ostrstr(tmpstr1, "/iframe>") != NULL) … … 842 880 free(pathnew), pathnew = NULL; 843 881 pathnew = ostrcat("kinox.me/aGET/Mirror/", hlink, 0, 0); 844 debug(99, "iframe2.1 pathnew: %s", pathnew);882 // debug(99, "iframe2.1 pathnew: %s", pathnew); 845 883 free(tmpstr1), tmpstr1 = NULL; 846 884 tmpstr1 = gethttps(pathnew, NULL, NULL, NULL, NULL, NULL, 1); 847 debug(99, "iframe2.2 tmpstr1: %s", tmpstr1);885 // debug(99, "iframe2.2 tmpstr1: %s", tmpstr1); 848 886 tmpstr1 = string_replace_all("\\", "", tmpstr1, 1); 849 debug(99, "iframe2.3 tmpstr1: %s", tmpstr1);887 // debug(99, "iframe2.3 tmpstr1: %s", tmpstr1); 850 888 851 889 if(ostrstr(tmpstr1, "<iframe src=") != NULL) 852 890 { 853 891 url = string_resub("<iframe src=\"", "\"", tmpstr1, 0); 854 debug(99, "iframe2.4 url: %s", url);892 // debug(99, "iframe2.4 url: %s", url); 855 893 } 856 894 } … … 858 896 { 859 897 tmpstr1 = string_resub("<a href=\"", "\"", tmpstr1, 0); 860 debug(99, "tmpstr1 3: %s", tmpstr1);898 // debug(99, "tmpstr1 3: %s", tmpstr1); 861 899 url = ostrcat(tmpstr1, NULL, 0, 0); 862 900 } … … 866 904 debug(99, "-------------------------------"); 867 905 debug(99, "(%d/%d) (%d/%d) %s url: %s extra: %s", i, max, j, mirrormax, hname, url, extra); 906 debug(99, "-------------------------------"); 868 907 869 908 incount += 1; … … 911 950 free(extra), extra = NULL; 912 951 } 952 debug(99, "### END #####################################################"); 913 953 } 914 954 }
Note: See TracChangeset
for help on using the changeset viewer.