1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XM radio via PyTivo?

Discussion in 'TiVo Home Media Features & TiVoToGo' started by grahamg, Dec 14, 2007.

  1. grahamg

    grahamg New Member

    67
    0
    Aug 18, 2006
    Pasadena CA
    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:
    [COLOR="Blue"]#EXTM3U
    #EXTINF:-1,KKJZ 88.1FM
    http://www.live365.com/play/kkjz1 [/COLOR]
    
    named it 88FM.m3u and placed it in my music folder.
    PyTivo gets better and better. Now I will try the XM radio thing

    A hearty thanks for your help in making this item happen!
     
  2. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Skips blank lines in .m3u's, and removes the counterproductive playable_cache.
     

    Attached Files:

  3. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    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.
     

    Attached Files:

  4. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    This version sorts the playlists separately from the MP3's, like Tivo Desktop. It's also a bit faster.
     

    Attached Files:

  5. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    This supports the extra Title and Duration data in .m3u and .pls playlists (though not in .b4s or .asx).
     

    Attached Files:

  6. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    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.)
     

    Attached Files:

  7. grahamg

    grahamg New Member

    67
    0
    Aug 18, 2006
    Pasadena CA
    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.

    One thing I did realize is how much we depended on the Tivo!

    Anyway here's wishing anyone who reads the message "Happy Holidays" !
     
  8. grahamg

    grahamg New Member

    67
    0
    Aug 18, 2006
    Pasadena CA
    Thanks Greg, I must have done this because this morning it is up to v9.x and pytivo etc is also working.

    I also installed WMC's ver 06 and that seems fine, but I do see problems on the video side. I will post later and describe what's wrong.
     
  9. greg_burns

    greg_burns Now in HD

    6,384
    0
    May 21, 2004
    Slower...
    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! ;)
     
  10. grahamg

    grahamg New Member

    67
    0
    Aug 18, 2006
    Pasadena CA
    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?

    wmcbrine ( could it be William ? C Brine?) - good work btw!
     
  11. grahamg

    grahamg New Member

    67
    0
    Aug 18, 2006
    Pasadena CA
    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)
    Code:
    file name
    virgin.m3u containing
    #EXTM3U
    #EXTINF:Virgin Radio 128
    [url]http://mp3-vr-128.smgradio.com:80/listen.pls[/url]
    
    the other
    radio88.m3u containing
    #EXTM3U
    #EXTINF:KKJZ 88.1FM
    [url]http://www.live365.com/play/kkjz1[/url]
    
    I am not sure if the virgin one worked before, but radio88 did. Both work correctly using winamp on the PC.
     
  12. greg_burns

    greg_burns Now in HD

    6,384
    0
    May 21, 2004
    Slower...
    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. :)
     
  13. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    William McBrine. My name and email address are at the top of my photo.py, BTW. :)

    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).
     
  14. grahamg

    grahamg New Member

    67
    0
    Aug 18, 2006
    Pasadena CA
    Hi!, wmcbrine just sounds impersonal somehow. But good name, we have a son called William, my grandfather too.

    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. http://tivocommunity.com/tivo-vb/showthread.php?p=5787882&highlight=%23EXTINF%3A-1%2CKKJZ+88.1FM#post5787882
    I suspect that I removed the "-1," and tried it with Winamp (it works), but didn't get around to trying it with Pytivo. I have just re-inserted it and not surprising it works. Sorry, I should have looked closer.

    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?

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

    greg_burns Now in HD

    6,384
    0
    May 21, 2004
    Slower...
    There is a button on the reply to thread screen with a globe and a link under it.

    Type a word, then highlight it and click that button. Paste your link in the popup box. Done.
     
  16. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    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.

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

    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.
     
  17. saramj

    saramj New Member

    234
    0
    Feb 3, 2005
    New Jersey
    Have read through this thread and at times have used the XM radio program with mixed success. However does this new pug in for pytivo stream XM???
    If so how?????
     
  18. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    No, sorry. I probably should've started a new thread.

    (Hey moderators, if it's not too much trouble, could you separate these into a new thread? #31, #35, #37-#47, #50-#56, and #59, I think.)
     
  19. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    -- 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.
     

    Attached Files:

  20. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    This fixes the shuffle mode, and allows for Unicode filenames etc.
     

    Attached Files:

Share This Page