Open GoogleCodeExporter opened 8 years ago
[deleted comment]
[deleted comment]
Original comment by mark.web...@gtempaccount.com
on 7 Mar 2011 at 5:45
Attachments:
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
you've read the tutorial but i think you didn't understanding it ...
if you just copy-past it ll never work , you have to adapt your script to the
website, not just change dailymotion.com with efukt.com
1: when you search "test" the given URL is http://www.efukt.com/search/test/
so c=GetContents('http://efukt.com/search/'+escape(keyword)+'/');
page will be harder to ad because the website refuse the number 1 in search url
2: all the result splinting process was take from motherless ('right
ellipsis">')
i dont have to say wat result expect from it ...
Original comment by biscotte...@gmail.com
on 7 Mar 2011 at 11:46
[deleted comment]
[deleted comment]
1:because you made a syntax error , that not due to the url changing (directly)
2:ya
Original comment by biscotte...@gmail.com
on 8 Mar 2011 at 12:04
understand the syntax error think that coz i put ` instead of ' which i dont
seem to have a key for so i have to copy and paste
but i think im mayb staring to head in right direction from what i sort of understand some parts of script are always same and other parts u have to build as nessesry to match in order of site
thx 4 putting up wit me
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 7:15
that exactly,
result.bypage = ..
c=GetContents('...
indexOf("...
site.play(...
and each attribut of "video" are dependent of the site interface , not the rest
of the script
good luck
Original comment by biscotte...@gmail.com
on 8 Mar 2011 at 8:12
thnx again for ya helps this is where im at so far with a script for muchosucko
when tou said bout efukt refuse 1 thought id try another
sofar i have
var muchosucko = new object();
muchosucko.rev = 1
muchosucko.SearchDesc =
muchosucko.Name = "muchosucko";
muchosucko.Search = function (keyword, page){
var result = new object();
result.bypage = 20:// static
result.start = (page-1)*result.bypage+1;
c=GetContents('http://muchosucko.com/b/'+escape(keyword)+'/'+page);
result.total = -1;
result.VideoInfo = new Array();
while(p=c.indexOf("<div id="content">",p)+1){
Video = new Object();
Video.Page = ext(<div class="recent_blog_main">);
Video.Id = ext(<div class="search_blog">);
Video.thumb = ext(<div class="image_block">);
Video.title = ext(<a href=">);
video.screen = ext(<img src=");
am bit stuck and not to sure if even right after video = new object this is
wot i can see
546</div> <!-- end right sidebar -->
547
548<div id="maindiv">
549
550
551<div id="content">
552<h2 class="pagetitle">Search Results Of test</h2>
553<div class="recent_blog_main">
554
555
556<div class="search_blog">
557<div class="image_block">
558 <a href="http://muchosucko.com/greatest-band-of-the-21st-century">
559 <img
src="http://cdn-0.muchosucko.com/production/asset/thumb/070/369/320x240/Greatest
BandEver4_384K_00_00_23_00001.jpg" height="77" width="98"> </a>
560</div>
561
562 <a href="http://muchosucko.com/greatest-band-of-the-21st-century">
563 <div class="rb_video_content_tittle"> Greatest Band of the 21st
Century</div>
564 </a>
565
566
567
568 <p>By: ClaudeBallz 11 Months Ago </p>
any pointers plz
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 8:44
[deleted comment]
added ' after page in get contents just noticed when i posted
and how do i get the video url ??
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 8:47
that another problem , dont be so quick, finish the search part ATM and leave
video.URL blank
btw you should use '<div class="image_block">' in the while
thmbnail is 'src="'
and why the fuck did you change the attribut name ?!
Original comment by biscotte...@gmail.com
on 8 Mar 2011 at 9:43
ok thnx added image block and change thubnail
what do i do about this bit
<div class="image_block">
558 <a href="http://muchosucko.com/greatest-band-of-the-21st-century">
559 <img
src="http://cdn-0.muchosucko.com/production/asset/thumb/070/369/320x240/Greatest
BandEver4_384K_00_00_23_00001.jpg" height="77" width="98"> </a>
560</div>
561
562 <a href="http://muchosucko.com/greatest-band-of-the-21st-century">
563 <div class="rb_video_content_tittle"> Greatest Band of the 21st
Century</div>
564 </a>
do i add </div then Ahref then dicclas
and what did you mean changed attribute?? where?
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 10:05
do you mean why did i add ' the get contents ??
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 10:08
this what i got
var muchosucko = new object();
muchosucko.rev = 1
muchosucko.SearchDesc =
muchosucko.Name = "muchosucko";
muchosucko.Search = function (keyword, page){
var result = new object();
result.bypage = 20:// static
result.start = (page-1)*result.bypage+1;
c=GetContents('http://muchosucko.com/b/'+escape(keyword)+'/'+page');
result.total = -1;
result.VideoInfo = new Array();
while(p=c.indexOf("<div id="content">",p)+1){
video = new Object();
video.Page = ext(<div class="recent_blog_main">);
video.Id = ext(<div class="search_blog">);
Video.Icon = ext(<div class="image_blog">);
video.thumb = ext(<'src=">);
video.title = ext(<a href=">);
video.screen = ext(<img src=");
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 10:11
in fact this script is completely wrong ...
you should start to learn JavaScript and make a training because you don't even
know what you're doing : a string must be placed between a " or a ' if it
already contain " or keep using " but using backslashing on it inner "
and an attribut is a ... erg ... property of an object (here Video).
you changed the name of it attribut : thum instate of Thumbnail etc...
i must sleep , you should try to post on a forum, not here because a receive a
email each time someone post a new issue (ya were on the google issue tracker,
not a forum ^^)
Original comment by biscotte...@gmail.com
on 8 Mar 2011 at 10:13
kk have changed thumdnail bit be last post for while as i honestly didnt know
you kept getting email every post sorry
thnx again for all help will try elesewhere alswell
think i sortat understood about the "
is this better
var muchosucko = new object();
muchosucko.rev = 1
muchosucko.SearchDesc =
muchosucko.Name = "muchosucko";
muchosucko.Search = function (keyword, page){
var result = new object();
result.bypage = 20:// static
result.start = (page-1)*result.bypage+1;
c=GetContents('http://muchosucko.com/b/'+escape(keyword)+'/'+page');
result.total = -1;
result.VideoInfo = new Array();
while(p=c.indexOf('<div id="'content'>"',p)+1){
video = new Object();
video.Page = ext('<div class="'recent_blog_main"');
video.Id = ext('<div class="'search_blog"');
Video.Icon = ext('<div class="'image_blog"');
video.thumbnail = ext('src="');
video.title = ext('a href="');
hoe i understood but sorry again
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 10:58
sorry wrong one
var muchosucko = new object();
muchosucko.rev = 1
muchosucko.SearchDesc =
muchosucko.Name = "muchosucko";
muchosucko.Search = function (keyword, page){
var result = new object();
result.bypage = 20:// static
result.start = (page-1)*result.bypage+1;
c=GetContents('http://muchosucko.com/b/'+escape(keyword)+'/'+page');
result.total = -1;
result.VideoInfo = new Array();
while(p=c.indexOf(<"div id="content",p)+1){
video = new Object();
video.Page = ext('<div class="recent_blog_main">');
video.Id = ext('<div class="search_blog">');
Video.Icon = ext('<div class="image_blog">');
video.thumbnail = ext('src="');
video.title = ext('a href="');
now i stop
Original comment by mark.web...@gtempaccount.com
on 8 Mar 2011 at 11:09
OMG I made it work those stupid brackets were wrong.
If you want add it to the updater :)
Here's the code.
var XHamster = new Object();
XHamster.rev = 1;
XHamster.SearchDesc =
XHamster.Name = "XHamster";
XHamster.Search = function (keyword, page){
var result = new Object();
result.bypage = 24;
result.start = (page-1)*result.bypage+1;
c=GetContents('http://xhamster.com/search.php?q='+escape(keyword)+'&page='+page)
;
result.total = -1;
result.VideoInfo = new Array();
while(p=c.indexOf('<div class="moduleFeaturedDetails',p)+1){
video = new Object();
video.attr = 1;
video.Title = ext('<u>', '</u>');
video.id = ext('id="');
video.href = ext('a href="');
video.ThumbnailURL = ext("img src='");
video.LengthSeconds= ext('Runtime: ','m')*60+ext('m','s')*1;
video.ViewCount = ext('Views: ', '</div>')*1;
video.Description = ext('<u>', '</u>');
video.URL = 'XHamster.play("'+video.href+'")';
//video.URL = "http://88.208.13.11/flv2/" +
'GetContents("http://www.xhamster.com/'+video.href+'").match(/"'file':
'"(.*,)</)[1]';
result.VideoInfo.push(video);
}
result.end = result.start-1+result.VideoInfo.length;
return result;
}
XHamster.play = function (id){
c=GetContents("http://www.xhamster.com/"+id);p=0;
var b = unescape("http://88.208.13.11/flv2/"+ext("'file': '", "',"));
return b;
}
SiteList.push(XHamster);
Original comment by ser...@safetymail.info
on 12 Mar 2011 at 4:17
Sorry I posted wrong issue :$
Original comment by ser...@safetymail.info
on 12 Mar 2011 at 4:18
Original issue reported on code.google.com by
mark.web...@gtempaccount.com
on 7 Mar 2011 at 12:12