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

announcing jukebox - an mp3 player for pyhme

Discussion in 'Developers Corner' started by jbernardis, Dec 26, 2011.

  1. Mar 17, 2012 #41 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    pyhme delivers an "idle" event to the app periodically when there is no remote control activity - I'm not sure what the timer period is. While music is playing, I dismiss this event in a way that keep the app active. If no music is playing, it allows the idle timer to kill the app and return to live TV.

    I guess it's possible, based on the specific timing, that an "idle" event may arrive shortly after music finishes playing. If this happens, then yes the screen will be quickly dismissed.

    I can, if you want, add an option to keep the app active when the idle event arrives, but this will mean that the app will never time out. Alternatively I can add logic that requires the receipt of two (or more) "idle" events before it times out.
     
  2. Mar 17, 2012 #42 of 153
    cassiusdrow

    cassiusdrow Member

    130
    0
    May 21, 2003
    NJ
    I'd prefer an option to always ignore the idle events - Galleon had a similar setting. Thanks!
     
  3. Mar 17, 2012 #43 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Version 1.0g is now on git. A new option has been added: ignoreidle, default value of False. If set to true, jukebox will not time out; you will need to explicitly exit from the app. I also changed the normal timeout logic to not react to the FIRST idle event, but to wait until the second such event before it times out. As always, the application will NEVER timeout if music is being played.
     
  4. Mar 18, 2012 #44 of 153
    davidblackledge

    davidblackledge Registered lÜser

    466
    0
    Sep 9, 2008
    NM
    Just as a point of information... it's the TiVo that delivers the event over HME. pyhme is just passing it along and doesn't handle the timing. If I remember correctly, you get one every 5 minutes of idle time.
     
  5. Apr 3, 2012 #45 of 153
    species8472jj

    species8472jj New Member

    56
    0
    Dec 23, 2009
    I am probably making this more complicated than it is or I should be reading this with more than 2 hours of sleep, but I'll ask my question anyway.

    When you say to install jukebox in my pyhme directory, I am not sure to what you're referring? My PyTivo directory? Python directory?

    I have pytivo installed and working (actually have for quite some time). My pytivo is running on a Windows 7 PC, so if you could answer my question, I appreciate it.

    Thank you.
     
  6. Apr 3, 2012 #46 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
  7. Apr 9, 2012 #47 of 153
    ricosuave

    ricosuave New Member

    22
    0
    Jan 21, 2006
    Does anybody else have an issue with Beyoncé showing up as Beyon?? anytime the artist name is displayed?
     
  8. Apr 9, 2012 #48 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    That's going to happen with non-ascii characters. To be honest, I found it easier to change the metadata and file names so that it simply shows up as, for example, Beyonce.
     
  9. Apr 9, 2012 #49 of 153
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    There is no reason it need happen.

    Code:
    # -*- coding: utf-8 -*-
    
    from hme import *
    
    TITLE = 'Hello World'
    
    class Hello(Application):
        def startup(self):
            Font(self, size=36, style=FONT_BOLD)
            #self.root.set_text('Hello, world!')
            self.root.set_text(u'Beyoncé')
     
  10. Apr 9, 2012 #50 of 153
    Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    I didn't picture you as a karaoke type but if you have the vocal cords you might as well use them. I joined the choir at Church and they changed practice night to one when I worked then made a rule that you can't sing on Sunday if you didn't make rehearsal.

    I guess envy gets the best of even the Church folks :)
     
  11. Apr 9, 2012 #51 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Don't change your metadata yet.

    I knew the issue was that I was forcing ASCII when I didn't really need to. I started working on a fix, and it should be rather simple - just give me a few days to work it in and test it out.

    Wednesday or Thursday I should have a fix up.
     
  12. Apr 10, 2012 #52 of 153
    ricosuave

    ricosuave New Member

    22
    0
    Jan 21, 2006
    Great news! Thanks for keeping jukebox up to date.

     
  13. Apr 12, 2012 #53 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I just put version 1.0h up on git. This adds support for unicode-encoded metadata.

    ricosuave - I don't have a lot of metadata that isn't ASCII, so I couldn't easily test this without using contrived data. I'm hoping you'll let me know if you have any issues with this version.
     
  14. Apr 13, 2012 #54 of 153
    ricosuave

    ricosuave New Member

    22
    0
    Jan 21, 2006
    Thanks for getting this out so quick. All the non ASCII characters look great and sort properly. Now I have a new problem though, it's not playing any tracks. The progress indicator just stays at 0:00 and it doesn't move. Any suggestions? Is there a log somewhere I can look at?

     
  15. Apr 13, 2012 #55 of 153
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Try rebooting the TiVo? This happens pretty regularly with the HMO version of the MP3 player; I'm not sure if the HME streamer is similarly affected, but I wouldn't be surprised. It's a TiVo-side bug (at least the HMO version is).
     
  16. Apr 14, 2012 #56 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    There is a new version of Jukebox on git - I introduced a bug in the lyrics retrieval code when I added the support for unicode. Version 1.0i.

    ricosuave - I hope wmcbrine's suggestion got you going again. This sounds likely. Jukebox plays no real active part in actually playing the file. It creates the stream, and thereafter just reacts to status messages that the TiVo delivers. It sounds like your TiVo was, for whatever reason, not sending these messages, so hopefully a reboot solves it.
     
  17. Apr 18, 2012 #57 of 153
    species8472jj

    species8472jj New Member

    56
    0
    Dec 23, 2009
    I am in the process of setting this up. I have one question.

    I got everything installed except, I cannot find where to change the directory where my music is stored. It defaults to my music directory on my PC, but that not where my music is stored.

    Could you please let me know how to change that?

    Thank you.
     
  18. Apr 18, 2012 #58 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Pytivo actually serves the mp3 files. You need to set up pytivoand define a music share there. Then you tell jukebox where the pytivo configuration can be found
     
  19. Apr 19, 2012 #59 of 153
    species8472jj

    species8472jj New Member

    56
    0
    Dec 23, 2009
    Thanks for the direction - makes total sense.

    One final question. I got the whole thing up and running. The only thing is when I choose a track to play, it does not play. It shows the proper screen, but it just hangs at time index 0:00.

    If you could help, that would be great.
     
  20. Apr 19, 2012 #60 of 153
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Do you have the proper ip address and/or port specified for the pytivo server. Somewhere in the output from jukebox there should be a line like "Server address = %s:%s". Make sure this points to pytivo. You can specify both of these in your jukebox.ini file (serverip= and serverport=). If you do not specify serverport in your ini file, it gets it from your pytivo config file. But make sure it points to pytivo, and NOT to jukebox/pyhme.
     

Share This Page