IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Is there a plugin for foobar2000 to search + play videos from YouTube?
jxxxxxx
post Dec 15 2011, 01:21
Post #1





Group: Members
Posts: 6
Joined: 15-December 11
Member No.: 95801



Hi,

I'm looking for a Plugin which enables foobar to search live in youtube and playes music from there..
When I'm searching I only found support for playing flv files.

Is there such a plugIn?
Go to the top of the page
+Quote Post
marc2003
post Dec 15 2011, 02:43
Post #2





Group: Members
Posts: 4440
Joined: 27-January 05
From: England
Member No.: 19379



no. but you can use foo_run to launch youtube in a browser with the current song artist/title details as the search criteria. you can then bind this action to a button or keyboard shortcut.

http://www.hydrogenaudio.org/forums/index....showtopic=45223

use the search box at the bottom left of the page to search the thread for "youtube". i'd imagine someone has already posted an example of how to do it.

This post has been edited by marc2003: Dec 15 2011, 02:43
Go to the top of the page
+Quote Post
dyermaker
post Dec 16 2011, 12:06
Post #3





Group: Members
Posts: 41
Joined: 18-January 09
Member No.: 65710



once you have installed foo_run you can add these terms in tools > run services

you can rename the first part however it suits you, these are then available by right clicking a track under 'run services' in your playlist

CODE
Artist : http://www.youtube.com/results?search_query=$replace(%artist%, ,+)&aq=f
Artist - Title : http://www.youtube.com/results?search_query=$replace(%artist%+%title%, ,+)&aq=f
Artist Playlist : http://www.youtube.com/results?search_type=search_playlists&search_query=$replace(%artist%, ,+)&uni=1


This post has been edited by dyermaker: Dec 16 2011, 12:09
Go to the top of the page
+Quote Post
jxxxxxx
post Dec 20 2011, 04:55
Post #4





Group: Members
Posts: 6
Joined: 15-December 11
Member No.: 95801



Hmm. Thanks, but does'nt find the point.


I was recently discovering the media player tomahawk.

A nice (think beta stadium) music player which should be able to play Music
from a local drive but also from different resolvers.

The point is that this resolvers could be for example youtube,
the own media server or something like that.
This is an awesome feature!

Tomahawk unfortunately is still not what I would call a power UI.
But has some great Ideas,
so I hoped that foobar could take also some of this idea.
Go to the top of the page
+Quote Post
romor
post Dec 20 2011, 23:08
Post #5





Group: Members
Posts: 668
Joined: 16-January 09
Member No.: 65630



Here is example VBS wrapper to a python script I made some time ago: foo_scrap.vbs
Link to python script: scrap.py

If anyone wants to use it, just copy both scripts in same folder and add foo_run action (I placed them both in "scripts" sub-folder relative to foobar folder):


Simple dialog pops when evoked:


Brief explanation: Script executes python script (you need to have Python) and outputs result in temp folder as PLS file, then passes this file to foobar
YouTube script needs a bit time to grab all quality links, so be patient. Soundcloud is fast, and grooveshark is unusable with foobar. I played grooveshark playlists with VLC and it seems that problem is not in user-agent but VLC includes "Icy-MetaData:1" in HTTP header while foobar does not, and does not get valid response. So except YouTube, SoundCloud can be parsed as noted on InputBox dialog.

YouTube script can be made for Wsh component I guess. YouTube gdata parsing is very fast and thumbnails are included (as links in json response), then on user demand, quality link can be retrieved on the fly and experience would be better. Just saying in case Wsh scripters like the idea wink.gif


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
mudlord
post Dec 21 2011, 11:41
Post #6





Group: Developer (Donating)
Posts: 805
Joined: 1-December 07
Member No.: 49165



Could you make a executable with py2exe or something?
Go to the top of the page
+Quote Post
romor
post Dec 21 2011, 20:06
Post #7





Group: Members
Posts: 668
Joined: 16-January 09
Member No.: 65630



Can do, but doesn't feel good bundling single script in couple of megabytes exe
Then for Python 2.6 and up, some special version of MSVCR90.dll is needed besides. Too complicated to be worth

Don't tell me you don't have Python biggrin.gif


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
jxxxxxx
post Dec 22 2011, 02:44
Post #8





Group: Members
Posts: 6
Joined: 15-December 11
Member No.: 95801



Hmm, maybe ill try it at weekend.
But python ... I try to keep my foobar portable ...

BTW.: is there a way to get foobar by double clicking a Song in Searchs (album list, & Co)
to add it as next in playlist?
Go to the top of the page
+Quote Post
Emerelle
post Dec 22 2011, 19:23
Post #9





Group: Members
Posts: 142
Joined: 3-November 11
Member No.: 94918



Look what I found today tongue.gif

fooTube
Together with foo_run it's exactly what you're looking for smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 31st July 2014 - 02:23