SKincinerate / gotube

Automatically exported from code.google.com/p/gotube
0 stars 0 forks source link

New XVideos script not working. Help! #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to update the XVideos script. I seem have input all the correct 
strings and updated the URLs, but now, nothing is showing up at all. I have 
looked at other examples such as DailyMotion and YouTube, but I can't figure it 
out.

var Xvideos = new Object();
Xvideos.rev        = 2;
Xvideos.SearchDesc = "XVideos in your Hand"
Xvideos.Name       = "Xvideos2";
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("thumbBlock",p)+1){
                q=p;
                video = new Object();
                video.attr = 3;
        video.ID = ext('id="')
                video.ThumbnailURL = ext('<img src="');
        video.href = ext('href="');
                video.Title = ext('">','</a></p>');
            //  video.Description  = "No longer included.";
                video.SaveFilename  = video.Title+'.flv';
            video.LengthSeconds = ext(">(","min")*60;
        video.RatingAvg     = ext("quality: ","%")*1;
                video.URL                 = Xvideos.play(video.href);
                c=d;
                p=q;
                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;
                url= unescape(ext('flv_url=','%3F'));
                return url
                }
SiteList.push(Xvideos);

Original issue reported on code.google.com by Er...@live.com on 16 Jul 2013 at 1:22

Attachments:

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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