Giter VIP home page Giter VIP logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
show me what you've done , i'll try to search the problem ;)

Original comment by [email protected] on 20 Jan 2011 at 7:25

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
[deleted comment]

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
[deleted comment]

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
var Motherless = new Object();
Motherless.rev        = 1;
Motherless.SearchDesc =
Motherless.Name       = "Motherless";
Motherless.Search     = function (keyword, page){
 var result = new Object();
 result.bypage    = 15;//static
 result.start     = (page-1)*result.bypage+1;
 c=GetContents('http://motherless.com/search/videos?search='+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.Description   = ext("<itunes:summary>");
  video.RatingAvg     = ext("<dm:videorating>")*1;
  video.RatingCount   = ext("<dm:videovotes>")*1;
  video.ViewCount     = ext("<dm:views>")*1;
  video.CommentCount  = ext("<dm:comments>")*1;
  video.MylistCount   = ext("<dm:favorites>")*1;
  video.id            = ext("<dm:id>");
  video.ThumbnailURL  = ext('<media:thumbnail url="');
  video.Tags          = ext("<itunes:keywords>").replace(/,/g,"");
  video.SaveFilename  = video.Title+'.flv';
  video.URL           = 'unescape(GetContents("http://www.motherless.com/'+video.id+'").match(\'"video", "(.*?)%40\')[1])';
  result.VideoInfo.push(video);
 }
 result.end       = result.start-1+result.VideoInfo.length;
 return result;
}
SiteList.push(Motherless);

lol... At least I tried. :(

Original comment by [email protected] on 20 Jan 2011 at 8:09

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
it shoul do the trick (not tested) :

var Motherless = new Object();
Motherless.rev        = 1;
Motherless.SearchDesc =
Motherless.Name       = "Motherless";
Motherless.Search     = function (keyword, page){
 var result = new Object();
 result.bypage    = 41;//static
 result.start     = (page-1)*result.bypage+1;
 c=http://motherless.com/search/videos?page='+page+'&search='+escape(keyword));
 result.total     = -1;
 result.VideoInfo = new Array();
 while(p=c.indexOf("thumbnail-img-wrap",p)+1){
  video = new Object();
  video.attr          = 3;
  video.id            = ext('<a href="');
  video.ThumbnailURL  = ext('url(');
  video.ViewCount     = ext('right ellipsis">',' ')*1;
  video.URL           = 'GetContents('+video.id+').ext("flashvars\',\'file=","&")';//
  result.VideoInfo.push(video);
 }
 result.end       = result.start-1+result.VideoInfo.length;
 return result;
}
SiteList.push(Motherless);

Original comment by [email protected] on 20 Jan 2011 at 10:56

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Thank you very much!

But when I load gotube, I get the following error.

"JavaScript load error ms0:/psp/game/gotube/site/motherless.js"

I looked over the script, but don't see any issues. Do you know the problem?

Thank you for helping me :)

Original comment by [email protected] on 21 Jan 2011 at 1:41

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
oups , i forgot to write "GetContents(" on the 9th line ^^

Original comment by [email protected] on 21 Jan 2011 at 2:14

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Thank you, I edited the 9th line as advised and it works now. :)

Only, issue is that the videos don't load. 

Original comment by [email protected] on 21 Jan 2011 at 2:42

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Maybe this line is wrong?

video.URL           = 
'GetContents('+video.id+').ext("flashvars\',\'file=","&")';//

Original comment by [email protected] on 21 Jan 2011 at 2:52

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Okay I edited the line, but it still doesn't work. I don't think it's getting 
the "video id" for the video.

video.URL           = 
'GetContents("http://motherless.com/'+video.id+'").ext("flashvars\',\'file=","&"
)';//

Original comment by [email protected] on 21 Jan 2011 at 3:02

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
file added to biscotte repository

Original comment by [email protected] on 21 Jan 2011 at 8:08

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Merci beaucoup!

I'm trying to match the motherless.js code for thumbnails, with pornhub.js 
because both sites use animated thumbnails. The thumbnails for motherless, 
depending on the video, show 3 - 4 compressed pictures as the thumbnail. 

Motherless: video.ThumbnailURL  = ext('url(');

Pornhub: video.ThumbnailURL = ext('src="',"?");

Any ideas?

Original comment by [email protected] on 21 Jan 2011 at 3:09

from gotube.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024

Original comment by [email protected] on 6 Mar 2011 at 2:00

  • Changed state: Done

from gotube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.