OK, the way it works is, an M3U is treated as a pseudo-folder, with a MIME type of "x-tivo-container/playlist". I'm gonna need a little more code to deal with this, but I should have it working shortly.

Here's my first stab at it. This needs a lot of work yet (for instance, it doesn't honor ItemCount; but you should be OK as long as your M3U has no more than eight items), but I managed to listen to an Internet radio station with the URL delivered by pyTivo. (It won't work yet with local files in the M3U; that's another thing to fix.) Note that pyTivo only provides the URL; the Tivo accesses the Internet server directly.

This is in the same form as my Photo module -- just unzip it in your pyTivo directory. It overwrites your existing Music module.

It should work with the stereo mix device. Follow GumboChief's instructions up to the point of your screenshot.

But before closing the properties window, enable "Stereo Mix" under "Show the following volume controls:". Then continue following GumboChief's directions to make sure "Stereo Mix" is the active recording device (not microphone).

Hi, thanks for this. But I presume that this still ties up the PC's audio. Meaning that while the application is feeding audio to the Tivo I cannot use the PC's audio - let's say for playing a different music source.

But my biggest annoyance was that on my PC I have 3x windows that have to be remain active. Or is this just my installation that I did wrong or something?

Correct. Whatever sound plays on your pc (even if speakers are muted) will come out via the speakers connected to Tivo.

Quote:

Originally Posted by grahamg

Hi, thanks for this. But I presume that this still ties up the PC's audio. Meaning that while the application is feeding audio to the Tivo I cannot use the PC's audio - let's say for playing a different music source.

But my biggest annoyance was that on my PC I have 3x windows that have to be remain active. Or is this just my installation that I did wrong or something?

Here's my first stab at it. This needs a lot of work yet (for instance, it doesn't honor ItemCount; but you should be OK as long as your M3U has no more than eight items), but I managed to listen to an Internet radio station with the URL delivered by pyTivo. (It won't work yet with local files in the M3U; that's another thing to fix.) Note that pyTivo only provides the URL; the Tivo accesses the Internet server directly.

This is in the same form as my Photo module -- just unzip it in your pyTivo directory. It overwrites your existing Music module.

Wow! Thanks, I have already renamed my old music folder and dropped yours in and restarted Pytivo. Now I only have to wait for "permission" to try it out (wifes watching something right now.....(:

But I realise that because XM radio 1st asks for a user name and password that this is likely to be a programming effort. The other route to XM appears to be via AOL.com who have their own player.

I was hoping that I might be able to select a few XM channels, ie just the ones that I am interested in and somehow obtain direct access to them.

I have another question about the Python enviroment. I am impressed with what can be done but cannot seem to get a handle on how to use it. Question. Is there a good IDE out there that would help me use Python?

But I realise that because XM radio 1st asks for a user name and password that this is likely to be a programming effort.

Well, there's nothing necessarily difficult about it needing a password, apart from the fact that I don't have an XM account myself. But does it stream as MP3? If not, then yes, it would be a much bigger effort.

Quote:

I have another question about the Python enviroment. I am impressed with what can be done but cannot seem to get a handle on how to use it. Question. Is there a good IDE out there that would help me use Python?

Sorry, I'm not an IDE guy; I use a text editor. I understand there are a few IDEs available, but I can't advise on them.

Hmm. I just got pyTivo (v208) working so that I could play mp3s. Now, I am ready to try out your plug-in.

You need a more recent version. The plug-in interface has changed, so it won't work with older versions.

The latest version is at the top of the downloads page on pytivo.armooo.net... some refer to it as "d4219" (for the first few digits after the date), though I like to think of it as "1209" (the date). Some of the earlier versions will also work, but I'm not sure how far back (not as far back as 2.08, anyway).

Ok. I just upgraded, but haven't installed your code yet. Now I can see the mp3 file on my Tivo, but when I click play the background color goes black for a moment. Then back to blue and nothing happens. Weird.

The music module doesn't work in the most recent version on Windows. But if you install my version of the module over it, it should fix that.

Like Greg I was using V208, I had tried a few of the PyTivo-2007-11-xx versions but they never seemed to work well and I always reverted back to V208. I do not know the difference between the Master and SubFolders version either.

Anyway, today I have installed pyTivo-2007-12-09-master-d42194527ba4796a8afd6bba586ded94df0d8c7a.zip, and inserted your updated Music module and viola everything looks good (5 minutes of intensive testing ).

MP3's play fine and I do see a little Radio logo which plays the MP3 stream off the internet.

Info for Greg, I created a test file

Code:

#EXTM3U
#EXTINF:-1,KKJZ 88.1FM
http://www.live365.com/play/kkjz1
named it 88FM.m3u and placed it in my music folder.

This version supports '.pls' as well as '.m3u'... also '.b4s' (not tested; I don't have any), '.asx' (and '.wax' and '.wvx'), and '.ram'. Still just the URLs, no extra information yet.

I did the .asx family because the Tivo Desktop documentation claims to support .asx, but I don't think the Tivo itself supports either mms:// URLs or .asf/.wma files, which is mostly what you'll find in .asx playlists. And I threw in .ram because it was trivial, but the same problems apply (no support for rtsp://, pnm://, or .ra/.rm, AFAICT). If you don't want these files cluttering up your directory listing, you can remove the extensions from PLAYLISTS near the top of music.py.

Just as well no one downloaded version 0.6 -- it had a stupid bug, and I didn't test it thoroughly. (I renamed a variable, and missed one reference.)

I appreciate you working on this!

My Tivo's original 40gb H.Drive has failed. I have replaced that drive with what was the secondary drive, using an old version of instantcake to install it. Everything is working, but not pytivo. My Tivo is running ver 5.3 now and I don't know when it will get upgraded to the current version. Possibly I need to call Tivo and ask for it? - I'm not sure.

I would post in the monster pyTivo thread. Get a lot more help that way.

Keep this thread for XM ideas/solutions.

Edit: And streaming audio/radio of course wmcbrine!

Yes. thats what I was thinking. I was wondering, the title of this chain is now a bit off subject, I notice that if I go to my very first post I do have the possibility of changing the title to (say) "Streaming Radio / audio via PyTivo" This would fit the overall subject better. But If I did this would that mess things up?

I have tried this with mixed success. The mp3 files on the PC run fine and I can see the additional title + duration etc. But my streaming radio .m3u files no longer run. I get "an unexpected error occurred while accessing the server" (error #3.0.65535)

Yes. thats what I was thinking. I was wondering, the title of this chain is now a bit off subject, I notice that if I go to my very first post I do have the possibility of changing the title to (say) "Streaming Radio / audio via PyTivo" This would fit the overall subject better. But If I did this would that mess things up?

IIRC, you can change the title of a thread, but it doesn't change it on the forum page itself, only inside the thread. Kinda wonky.

William McBrine. My name and email address are at the top of my photo.py, BTW.

Quote:

Originally Posted by grahamg

Comments on pyTivo-music-playlists-0.7.zip by wmcbrine

I have tried this with mixed success. The mp3 files on the PC run fine and I can see the additional title + duration etc. But my streaming radio .m3u files no longer run. I get "an unexpected error occurred while accessing the server" (error #3.0.65535)

I am not sure if the virgin one worked before, but radio88 did. Both work correctly using winamp on the PC.

The Virgin one wouldn't have worked before -- you've got one playlist redirecting to another there. That's something I'm planning to support, but I haven't done it yet.

As far as KKJZ, I was going to say that I have that exact file (copied from post #41), and it works for me. But then I looked more closely, and I saw that the duration info is missing from the ones in #51. They should be like "#EXTINF:-1,KKJZ 88.1FM". Leaving out the duration makes the parser fail. (The version from post #41 is correct. Did you actually recreate it?)

I'll make this fail more gracefully, so it will still work (it'll just ignore the EXTINF line if it's malformed).

On the "-1," thing, it is my mistake, I read another post which implied that it wasn't needed. Title "Internet Radio???" 05-21-2007, 04:09 PM by Dan203.

I'd read that it was required. But notice that although he omitted the -1, he kept the comma. That's crucial, because it puts the title into the second field rather the first. I can make that work, too.

Quote:

I was just looking at the BBC feeds and see that they use RealPlayer format which doesn't sound compatible. Tivo only handles mp3 right?

Yes. Of course, the PC could transcode...

Quote:

Question is there a way to make the link above more elegant ie. shorter, yet perform the same action?

Yeah, use the "[ url ]" tag (without the spaces) around the phrase you want to link, instead of just typing the URL. If you go back and edit the message, you'll see that vBulletin has done this automatically.

-- Add support for .wpl playlists, generated by Windows Media Player (note that this isn't in Tivo Desktop)
-- Relative paths weren't being handled correctly unless the playlist was in the top directory of the share
-- Allow for malformed EXTINF lines in .m3u

Sadly, I also saw my first #5-6 errors with this module (the error is "#3-5-6" from the music player, but I'm sure it's the same problem as #5-6 in photos). Not that they wouldn't have happened before; I just hadn't been testing in Windows much.