yne / gotube

YouTube player for the PlayStation Portable
0 stars 1 forks source link

Vkontakte.ru #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Does anybody know one site- vkontakte.ru?
And no one wants to make this script?
I tried to make this script...
I was surprised, first time it don't show me error message :DDDD
But it don't want to search...
I think u can search videos, if you logged in...
So, can u help me?

That's what i've got...

var Vk = new Object();
Vk.rev        = 1;
Vk.SearchDesc = 
Vk.Name       = "Vk";
Vk.Search     = function (keyword, page){
var result = new Object();
result.bypage    = 41;//static
result.start     = (page-1)*result.bypage+1;
c=GetContents('http://vkontakte.ru/search?c%5Bq%5D='+escape(keyword)+'&c%5Bsecti
on%5D=video');
result.total     = -1;
result.VideoInfo = new Array();
while(p=c.indexOf("<div class="info fl_l">",p)+1){
  video = new Object();
  video.attr          = 3;
  video.id            = ext('<a  href="');
  video.Title         = ext('title="');
  video.ThumbnailURL  = ext('src="');
  video.URL           = 'Vk.play("'+video.id+'")';
  result.VideoInfo.push(video);
}
result.end       = result.start-1+result.VideoInfo.length;
return result;
}
Vk.play = function(url){
    c=GetContents(url);p=0;
    return ext("'file', '");
}
SiteList.push(Vk);

P.S. sorry for my English =)))

Original issue reported on code.google.com by ilkul...@gmail.com on 27 Sep 2011 at 5:32

GoogleCodeExporter commented 8 years ago
Hey, i need help, please=) don't sleep:D

http://vkontakte.ru/login.php?m=1&email=blablabla%40rambler.ru&pass=blablabla

I found url, that logging in vkontakte.ru 
e-mail= blabla@rambler.ru 
password=blablabla(for example)

How can i use this url to log in vkontakte.ru, then search videos, then play 
video?

Original comment by ilkul...@gmail.com on 29 Sep 2011 at 7:59