Open GoogleCodeExporter opened 8 years ago
As in, there is absolutely no response when I put in any search keywords.
Original comment by Er...@live.com
on 16 Jul 2013 at 1:32
Code has been polished, alerts have been added, but nothing comes up in the
results at all! No page numbers, no nothing! (Quickly commented out the alerts.)
var Xvideos = new Object();
Xvideos.rev = 2;
Xvideos.SearchDesc = "XVideos in your Hand";
Xvideos.Name = "Xvideos2 - Copy";
Xvideos.Search = function (keyword, page){
var result = new Object();
result.bypage = 20;
result.start = (page-1)*result.bypage+1;
//page=page-1;
c=GetContents('http://www.xvideos.com/?k='+escape(keyword)+'&p='+page);
//d=c;
result.total = -1;
result.VideoInfo = new Array();
while(p=c.indexOf("lock",p)+1){
video = new Object();
video.attr = 3;
video.ID = ext('id="');
video.ThumbnailURL = ext('<img src="');
video.href = "http://www.xvideos.com"+ext('href="');
video.Title = ext('">','</a></p>');
video.Description = "No longer included.";
video.LengthSeconds = ext(">(","min")*60;
video.RatingAvg = ext("quality: ","%")*1;
video.SaveFilename = video.Title+'.flv';
//alert(video.ID);
//alert(video.ThumbnailURL);
//alert(video.href);
//alert(video.Title);
//alert(video.Description);
//alert(video.LengthSeconds);
//alert(video.RatingAvg);
//alert(video.SaveFilename);
video.URL = 'Xvideos.play("' + video.href +'")';
result.VideoInfo.push(video);
}
result.end = result.start-1+result.VideoInfo.length;
return result;
}
Xvideos.play = function (id){
//p=0;
c=GetContents(id);//p=0;
//alert(unescape(ext('flv_url=','&')));
url= unescape(ext('flv_url=','&'));
return url
}
SiteList.push(Xvideos);
Original comment by Er...@live.com
on 16 Jul 2013 at 4:29
Original issue reported on code.google.com by
Er...@live.com
on 16 Jul 2013 at 1:22Attachments: