disable Google Video Search

322 views
Skip to first unread message

Matthieu

unread,
Aug 16, 2009, 12:24:38 PM8/16/09
to Google AJAX APIs
Hi,

Im using the api on my website but Ive noticed google videos don't
work for a very long time.
Id like to disable the google video results but keep the youtube ones.
Do you know how to do it?

here is my code
this.video = new GvideoSearch();
this.ctrl.addSearcher(this.video, searcherOptions);
this.ctrl.setSearchCompleteCallback(this, ready_video);

thks

Vision Jinx

unread,
Aug 17, 2009, 1:05:25 PM8/17/09
to Google AJAX APIs
Hi,

In my experience Google modifies your query to include both results
and I really wish there was a way to specify this instead of having
Google force it on you.

The queries Google generates for me is

http://video.google.com/videosearch?source=uds&type=search&q=google+%28site%3Avideo.google.com+OR+site%3Ayoutube.com%29&hl=en&start=0

"site:video.google.com+OR+site:youtube.com"

So you most likely will have to build your own controls for this using
the feeds Gdata from YouTube instead or something

http://gdata.youtube.com/feeds/base/videos?q=google&client=ytapi-youtube-search&alt=rss&v=2

(You should be able to build a feed app to do this)

Or, just try the YouTube API instead

http://code.google.com/apis/youtube/overview.html

Cheers!
Vision Jinx

Adam Feldman

unread,
Aug 17, 2009, 2:50:05 PM8/17/09
to Google AJAX APIs
Hi Matthieu,

Can you provide a little more detail on what you mean? I'm not sure
what you mean by they "don't work". Try going tho this Playground
example:
http://code.google.com/apis/ajax/playground/#youtube_channels

Now, in the bottom part of the window, remove this text
"ytchannel:NBA" and type in "dog". The fourth result (title: Two
Legged Dog) is a Google Video video. As you can see, the preview is
there, and the link correctly links to the video at Google Video.

Please let us know what's not working for you and we'll try to help
you fix the problem.

Thanks,
Adam

Matthieu

unread,
Aug 20, 2009, 8:25:35 PM8/20/09
to Google AJAX APIs
Hi thks for your replies!

what I meant by they "dont work", is yes they do work but after 2
weeks for example, the link is dead so the video is not playing
anymore, it also happens with youtube videos but its still rare.

thats why I want to disable the google videos!

I might try Jinx's solutuion then!

Adam Feldman

unread,
Aug 20, 2009, 9:21:15 PM8/20/09
to Google AJAX APIs
Hmm, links shouldn't be dying after a couple weeks. Can you give me
an example of a specific search that results in a "dead" video? If
not, can you at least send a link to a video that doesn't play any
more? Any extra info you can provide on this would be helpful.

I appreciate you helping us track down this problem, even though
you're planning on still using Jinx's solution.

Thanks,
Adam

Matthieu

unread,
Aug 24, 2009, 10:59:43 PM8/24/09
to Google AJAX APIs
Hi Adam,

here is an example of dead link

http://video.google.com/s/MyL2xl0HXdE/googleplayer.swf?videoUrl=http://v6.lscache5.googlevideo.com/videoplayback%3Fid%3D3ff11b26262752f7%26itag%3D5%26begin%3D0%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1247863429%26sparams%3Dip,ipbits,expire,id,itag%26signature%3D43FF4C4598129E632FFCD0041BE848E107ED0216.15EC58FBD27643191BB76774A2EDEFEFB5D24A79%26key%3Dck1&thumbnailUrl=http://3.gvt0.com/ThumbnailServer2%3Fapp%3Dvss%26contentid%3D3ff11b26262752f7%26offsetms%3D5000%26itag%3Dw160%26hl%3Den%26sigh%3D5qOTv_Bq3yoVYlc0rf6wtrbxPcE&docid=-5949217526077722325&hl=en&q=James+Bond+mozinor+(site:video.google.com+OR+site:youtube.com)&source=uds&playerMode=simple&autoPlay=true

I am still getting the thumbnail at
http://3.gvt0.com/ThumbnailServer2?app=vss&contentid=3ff11b26262752f7&offsetms=5000&itag=w160&hl=en&sigh=5qOTv_Bq3yoVYlc0rf6wtrbxPcE


or this one
http://video.google.com/s/MyL2xl0HXdE/googleplayer.swf?videoUrl=http://v12.lscache3.googlevideo.com/videoplayback%3Fid%3D5013e31467adedbb%26itag%3D5%26begin%3D0%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1247635485%26sparams%3Dip,ipbits,expire,id,itag%26signature%3D4FBFDCDC3099DC9BD743238761F0B3166B2792F7.6DAF72B10019D5AD2A47077D29E9EAED32CF24EC%26key%3Dck1&thumbnailUrl=http://3.gvt0.com/ThumbnailServer2%3Fapp%3Dvss%26contentid%3D5013e31467adedbb%26offsetms%3D5000%26itag%3Dw160%26hl%3Dfr%26sigh%3DOngCOaOGWa97QxByCXbvERNBxPQ&docid=-7733927498447273558&hl=fr&q=Dune+2+%28site:video.google.com+OR+site:youtube.com%29&source=uds&playerMode=simple&autoPlay=true

thumbnail
http://3.gvt0.com/ThumbnailServer2?app=vss&contentid=5013e31467adedbb&offsetms=5000&itag=w160&hl=fr&sigh=OngCOaOGWa97QxByCXbvERNBxPQ


or
http://video.google.com/s/4lS77yaJ_k8/googleplayer.swf?videoUrl=http://v9.lscache6.googlevideo.com/videoplayback%3Fid%3D6cec7793230ee147%26itag%3D5%26begin%3D0%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1247227811%26sparams%3Dip,ipbits,expire,id,itag%26signature%3D673121FBA137034C7C887FE756D2F6116B1794B5.4F34A6C8C6EFC7837BCF42E5A178797E8CFDCC76%26key%3Dck1&thumbnailUrl=http://3.gvt0.com/ThumbnailServer2%3Fapp%3Dvss%26contentid%3D6cec7793230ee147%26offsetms%3D10000%26itag%3Dw160%26hl%3Den%26sigh%3DNbQj-xOga2zeMwsP14ZRnDd6UiE&docid=-2842562415450593499&hl=en&q=Gobbledigook+%28site:video.google.com+OR+site:youtube.com%29&source=uds&playerMode=simple&autoPlay=true

I might be doing something wrong but Im sure those videos used to
work.

Matthieu

Adam Feldman

unread,
Sep 1, 2009, 8:18:58 PM9/1/09
to Google AJAX APIs
Hi Matthieu,

Sorry for the delayed response. I see the problem you reported, and
we're looking into it. In the mean time, I hope Vision Jinx's
solution works for you.

Thanks for bringing this to our attention!

Adam

On Aug 24, 7:59 pm, Matthieu <matthieu.aussag...@gmail.com> wrote:
> Hi Adam,
>
> here is an example of dead link
>
> http://video.google.com/s/MyL2xl0HXdE/googleplayer.swf?videoUrl=http:...
>
> I am still getting the thumbnail athttp://3.gvt0.com/ThumbnailServer2?app=vss&contentid=3ff11b26262752f7...
>
> or this onehttp://video.google.com/s/MyL2xl0HXdE/googleplayer.swf?videoUrl=http:...
>
> thumbnailhttp://3.gvt0.com/ThumbnailServer2?app=vss&contentid=5013e31467adedbb...
>
> orhttp://video.google.com/s/4lS77yaJ_k8/googleplayer.swf?videoUrl=http:...
>
> I might be doing something wrong but Im sure those videos used to
> work.
>
> Matthieu
>
> On Aug 20, 9:21 pm, Adam Feldman <adam.feld...@google.com> wrote:
>
> > Hmm, links shouldn't be dying after a couple weeks.  Can you give me
> > an example of a specific search that results in a "dead"video?  If
> > not, can you at least send a link to avideothat doesn't play any
> > more?  Any extra info you can provide on this would be helpful.
>
> > I appreciate you helping us track down this problem, even though
> > you're planning on still using Jinx's solution.
>
> > Thanks,
> > Adam
>
> > On Aug 20, 5:25 pm, Matthieu <matthieu.aussag...@gmail.com> wrote:
>
> > > Hi thks for your replies!
>
> > > what I meant by they "dont work", is yes they do work but after 2
> > > weeks for example, the link is dead so thevideois not playing
> > > anymore,  it also happens with youtube videos but its still rare.
>
> > > thats why I want todisablethegooglevideos!
>
> > > I might try Jinx's solutuion then!
>
> > > On Aug 18, 6:50 am, Adam Feldman <adam.feld...@google.com> wrote:
>
> > > > Hi Matthieu,
>
> > > > Can you provide a little more detail on what you mean?  I'm not sure
> > > > what you mean by they "don't work".  Try going tho this Playground
> > > > example:http://code.google.com/apis/ajax/playground/#youtube_channels
>
> > > > Now, in the bottom part of the window, remove this text
> > > > "ytchannel:NBA" and type in "dog".  The fourth result (title:  Two
> > > > Legged Dog) is aGoogleVideovideo.  As you can see, the preview is
> > > > there, and the link correctly links to thevideoatGoogleVideo.
>
> > > > Please let us know what's not working for you and we'll try to help
> > > > you fix the problem.
>
> > > > Thanks,
> > > > Adam
>
> > > > On Aug 16, 9:24 am, Matthieu <matthieu.aussag...@gmail.com> wrote:
>
> > > > > Hi,
>
> > > > > Im using the api on my website but Ive noticedgooglevideos don't
> > > > > work for a very long time.
> > > > > Id like todisablethegooglevideoresults but keep the youtube ones.
> > > > > Do you know how to do it?
>
> > > > > here is my code
> > > > >           this.video= new GvideoSearch();

Adam Feldman

unread,
Sep 8, 2009, 1:36:17 PM9/8/09
to Google AJAX APIs
Hi Matthieu,

I've looked into this, and I believe the problem is fixed. Nothing
can be done for the old links that you included before, but if you
query the API, the links you get back should be to valid videos now.
For instance, a search for "James Bond mozinor", which I believe
triggers your video as the second link, returns this playUrl:
http://video.google.com/s/zizJPyf32zs/googleplayer.swf?videoUrl\u003dhttp://v21.lscache6.googlevideo.com/videoplayback%3Fid%3D140fb38ea825b4e7%26itag%3D5%26begin%3D0%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1252452869%26sparams%3Dip,ipbits,expire,id,itag%26signature%3D4D4AAD4CEBF67A64ABB313338BBF7909649BFE0E.7DB18B519EDC9FEAE075342C3C4E8E91AE94E7E8%26key%3Dck1\u0026thumbnailUrl\u003dhttp://3.gvt0.com/ThumbnailServer2%3Fapp%3Dvss%26contentid%3D140fb38ea825b4e7%26offsetms%3D30000%26itag%3Dw160%26hl%3Den%26sigh%3DamE5NaURwp6ZGzewLDKNZUNJ9fg\u0026docid\u003d4521094805763618375\u0026hl\u003den\u0026q\u003dJames+Bond+mozinor+(site:video.google.com+OR+site:youtube.com)\u0026source\u003duds\u0026playerMode\u003dsimple\u0026autoPlay\u003dtrue

Once you decode the URL, it should take you to the video.

Please do take a look, and let me know if you can perform any searches
(including the query you used) which result in a bad playUrl link.

Thanks!
Adam

On Sep 1, 5:18 pm, Adam Feldman <adam.feld...@google.com> wrote:
> Hi Matthieu,
>
> Sorry for the delayed response.  I see the problem you reported, and
> we're looking into it.  In the mean time, I hope Vision Jinx's
> solution works for you.
>
> Thanks for bringing this to our attention!
>
> Adam
>
> On Aug 24, 7:59 pm, Matthieu <matthieu.aussag...@gmail.com> wrote:
>
> > Hi Adam,
>
> > here is an example of dead link
>
> >http://video.google.com/s/MyL2xl0HXdE/googleplayer.swf?videoUrl=http:...
>
> > I am still getting the thumbnail athttp://3.gvt0.com/ThumbnailServer2?app=vss&contentid=3ff11b26262752f7...
>
> > or this onehttp://video.google.com/s/MyL2xl0HXdE/googleplayer.swf?videoUrl=http:...
>
> > thumbnailhttp://3.gvt0.com/ThumbnailServer2?app=vss&contentid=5013e31467adedbb...
>
> > orhttp://video.google.com/s/4lS77yaJ_k8/googleplayer.swf?videoUrl=http:...
>
> > I might be doing something wrong but Im sure those videos used to
> > work.
>
> > Matthieu
>
> > On Aug 20, 9:21 pm, Adam Feldman <adam.feld...@google.com> wrote:
>
> > > Hmm, links shouldn't be dying after a couple weeks.  Can you give me
> > > an example of a specificsearchthat results in a "dead"video?  If
Reply all
Reply to author
Forward
0 new messages