PDA

View Full Version : Can I Add A Playlist As A Source?


ChinaRider
2009-06-12, 06:29
I have my sources setup so that I have a 'Playlist' source that points to a folder on my computer that contains m3u playlists. It works flawlessly. I stream music from my computer pretty much 24/7 and the URL is 192.168.0.3:8000. One of my m3u playlists in the playlist folder references this stream and when I click on that m3u playlist it plays my stream.

I would like to know if it's possible to add that stream as a source so that it shows up in the Music Sources list.

The stream is 192.168.0.3:8000. For example, if I launch Winamp (or any other media player, for that matter) from any computer in my house and enter the URL 192.168.0.3:8000, I can listen to the stream.

Adding this URL as a source in xbmc doesn't work - If I enter it as '192.168.0.3:8000' it just says 'none' in the path field. If I enter it as 'http:\\192.168.0.3:8000' it seems to lock up.

Adding the m3u file from my playlists folder as a source doesn't work either, it gives me an error that the source isn't a directory or something to that effect.

Is there any way I can add my stream to the list of sources so that I don't have to click 3 or 4 times to get to it? I know I'm getting picky here because all I'm trying to do is avoid a few clicks of the remote but since this is what I listen to about 90% of the time, it seems worth it to me. I'd like to have this stream as the top source on my list of music sources so I just click 'Music' and then click '<My Stream>' or whatever I choose to name it...

Bomb Bloke
2009-06-12, 09:31
Might be possible via a plugin...?

But as an alternative:

Paste the following into a text document, name the file "playstream.py" or something, stick it in XBMC's "scripts" folder:

import xbmc
file= 't:\\playlists\\Music\\yourplaylist.m3u' (or whatever the path to your playlist is)
xbmc.PlayList(0).load(file)
xbmc.Player().play()
Now add this script as a Favourite (goto Scripts, use the white button on it, select from the context menu).

How you access your Favourites depends on your skin. For PMIII, press the right thumbstick. For MC360, press Start.

You can now load your stream fairly quickly from where ever you are in XBMC, without even entering the Music menu.