Changeset 23760 for titan/plugins/tithek/myvideo.h
- Timestamp:
- 09/16/13 17:13:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/myvideo.h
r23759 r23760 7 7 { 8 8 debug(99, "link(%d): %s", flag, input); 9 char* ip = NULL, *pos = NULL, *path = NULL, *pageUrl = NULL, *playpath = NULL, *video_id = NULL, *source = NULL, *streamurl = NULL, *tmpstr_uni = NULL, *b64 = NULL, *key = NULL, *newurl = NULL, *link = NULL ;9 char* ip = NULL, *pos = NULL, *path = NULL, *pageUrl = NULL, *playpath = NULL, *video_id = NULL, *source = NULL, *streamurl = NULL, *tmpstr_uni = NULL, *b64 = NULL, *key = NULL, *newurl = NULL, *link = NULL, *tmpstr = NULL, *tmppath = NULL, *error = NULL; 10 10 11 11 if(flag == 1) … … 34 34 } 35 35 36 char* tmpstr = NULL; 36 tmppath = ostrcat("watch/", video_id , 0, 0); 37 tmppath = ostrcat(tmppath, "/" , 1, 0); 38 tmpstr = gethttp(ip, tmppath, 80, NULL, NULL, 10000, NULL, 0); 39 error = string_resub("<div class='lContent lContNoBorder error sBold sCenter'>", "</div>", tmpstr, 0); 40 41 unlink("/tmp/myvideo_tmpstr"); 42 unlink("/tmp/myvideo_tmpstr_uni"); 43 unlink("/tmp/myvideo_tmpstr_error"); 44 45 if(getconfigint("debuglevel", NULL) == 99) 46 writesys("/tmp/myvideo_tmpstr_error", tmpstr, 0); 47 48 if(ostrstr(error, "<div class='error sBold' id='error_screen_body'>") == NULL) 49 { 50 textbox(_("Message"), _(error) , _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1200, 200, 0, 0); 51 debug(99, "error msg: %s", error); 52 } 53 54 debug(99, "error link: http://%s/%s", ip, tmppath); 55 free(tmpstr), tmpstr = NULL; 56 free(tmppath), tmppath = NULL; 57 free(error), error = NULL; 58 37 59 // not working tmpstr hat zusatzdaten im string 38 60 tmpstr = gethttp(ip, path, 80, NULL, NULL, 10000, NULL, 0); 39 61 40 62 debug(99, "link: http://%s/%s", ip, path); 41 42 unlink("/tmp/myvideo_tmpstr");43 unlink("/tmp/myvideo_tmpstr_uni");44 63 45 64 if(getconfigint("debuglevel", NULL) == 99) … … 224 243 incount += 1; 225 244 line = ostrcat(line, title, 1, 0); 226 line = ostrcat(line, "#http://www.myvideo.de/dynamic/get_player_video_xml.php?flash_playertype=SER&ID=", 1, 0); 245 // line = ostrcat(line, "#http://www.myvideo.de/dynamic/get_player_video_xml.php?flash_playertype=SER&ID=", 1, 0); 246 // de fix 247 line = ostrcat(line, "#http://www.myvideo.de/dynamic/get_player_video_xml.php?domain=www.myvideo.de&flash_playertype=D&ds=1&autorun=yes&ID=", 1, 0); 227 248 line = ostrcat(line, id, 1, 0); 228 line = ostrcat(line, "&_countlimit=4&autorun=yes;pageUrl=http://www.myvideo.de/watch/", 1, 0); 249 // line = ostrcat(line, "&_countlimit=4&autorun=yes;pageUrl=http://www.myvideo.de/watch/", 1, 0); 250 // de fix 251 line = ostrcat(line, "&_countlimit=4;pageUrl=http://www.myvideo.de/watch/", 1, 0); 229 252 line = ostrcat(line, id, 1, 0); 230 253 line = ostrcat(line, "/;playpath=flv:movie24/a0/", 1, 0);
Note: See TracChangeset
for help on using the changeset viewer.