SKincinerate / gotube

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

script making help #117

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
so i found this anime site and tried making a script for it :D
when i search anything it doesn't give me video (no search results)
i don't know much at java scripting i just followed the tutorial at the home 
page here is the script
---------------------------
var Anime = new Object();
Anime.rev        = 1;
Anime.SearchDesc = "I hope this works"
Anime.Name       = "Anime";
Anime.Search     = function (keyword, page){
 var result = new Object();
 result.bypage    = 10;//static
 result.start     = (page-1)*result.bypage+1;
 c=GetContents("http://www.animefreak.tv/search/node/"+escape(keyword)+'/'+page);
 result.total     = -1;
 result.VideoInfo = new Array();
 while(p=c.indexOf("<item>",p)+1){
  video = new Object();
  video.attr          = 3;
  video.LengthSeconds = 0;//not provided
  video.Title         = ext("<title>");
  video.SaveFilename  = video.Title+'.flv';
  video.URL               = 'Anime.play("'+video.id+'")';
  result.VideoInfo.push(video);
 }
 result.end       = result.start-1+result.VideoInfo.length;
 return result;
}
Anime.play = function(id){
//Anime do not provided flv anymore MP4 are unplayable but can be saved on MS
        c=GetContents('http://www.animefreak.tv/watch/'+id);p=0;
        var auth = ext('auth%3D','%');
        var url = "http://www.animefreak.tv/cdn/H264-512x384/watch/"+id+".mp4?auth="+auth+"&redirect=0"
        var video = GetContents(url);
        return video;
}
SiteList.push(Anime);

Original issue reported on code.google.com by xxxabed...@gmail.com on 23 Jun 2013 at 12:59

GoogleCodeExporter commented 8 years ago
Forget it !

Original comment by xxxabed...@gmail.com on 24 Jun 2013 at 11:02