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

PyTivo Video Manager HME App for pyhme

Discussion in 'Developers Corner' started by jbernardis, Apr 20, 2011.

  1. wmcbrine

    wmcbrine Ziphead

    10,362
    22
    Aug 2, 2003
    Fortunately, an HME app terminates if you navigate out of it, so I don't even have to go into all the other problems with that idea.
     
  2. lew

    lew Active Member

    3,949
    3
    Mar 12, 2002
    To be clear I wasn't asking for that feature. I don't think I'd use it if it was offered. I have a TivoHD and use PyTivo Manager because I want to initiate a push from the tivo interface.

    Does it matter if the HME app terminates? You select a show to pull. A custom routine in an external program, maybe part of a modified pyTivo runs the necessary remote commands to initiate a "pull".

    I don't want the feature. I wouldn't use it if it was offered. I don't even think it would work reliably. I think the "issues" would be far greater then current issues with the mind server.

    I just wonder if such an approach is theoretically possible. May lrhorer could experiment with the coding, test it and get back to us.
     
  3. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    A DNLA server would be no big deal to implement, of course. I really don't want to buy 4 new BRD players, though, and I especially do not really want to have to deal with additional remote controls, additional TV inputs, and additional UIs. This is especialy true since the whole idea of getting vidmgr to do a pull is to allow us to have one one UI for both pushing and pulling.

    It's really not that bad dealing with the occasional frailty of the mind server, but it would be nice to pull using vidmgr when needed.
     
  4. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    I'm not at all familiar with the HME protocol, and since Wiliam says it's at the very least not practical, I don't see a point in trying to familiarize myself with the protocol in order to attempt it.
     
  5. cweb

    cweb New Member

    106
    0
    May 29, 2004
    I am using OSX (Mac). When referring to the "usefileid" in my .ini file, are you referring to my vidmgr.ini file. In the file the is no "usefileid".

    In vidmgr.dist I see your mention of "usefileid". I am not aware of my using any links. Should I set this variable to false?
     
  6. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Not necessary. False is the default. I can't think of what it could be. Keep an eye on it to see if you can discern any clue that would be helpful. In the meantime, I can look at what I can do at cache building time to output some useful debugging information.
     
  7. cweb

    cweb New Member

    106
    0
    May 29, 2004
    The vidmgr.dist says the default is true. Is that not so?
     
  8. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    You're right - it is true. You can give it a shot. If you don't have your video files appear in multiple directories through links, then turning this off will not hurt you.

    I know nothing about mac OS, but my understanding is that it is unix-like under the covers. If the OS is NOT WIN, then vidmgr uses the os.stat call to determine the true file identity (inode number) so that it can decide if two files are actually the same file. I'm not sure the behavior of this under Mac OS.

    See what happens if you turn it off.
     
  9. wmcbrine

    wmcbrine Ziphead

    10,362
    22
    Aug 2, 2003
    OS X is built on Unix, but there are some oddities. For instance, it uses a case-preserving filesystem rather than a case-sensitive one. Mostly, apps won't need to worry about these things. AFAIK it's fully POSIX.
     
  10. cweb

    cweb New Member

    106
    0
    May 29, 2004
    I turned it off, and it seems to have solved the problem. I'll have to work with it a while to see if some other issue rears its head as a result of the value being turned off. However, for now, so far so good.

    As a side result, it was never bad, but the menus seem to be responding even faster now. Is this possible or just wishful thinking on my part.
     
  11. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    It shouldn't be any faster. All of the processing we are talking about here takes place when building the cache.

    There also should be no I'll effects from turning the option off. Vidmgr gets the file ID number to determine if it's proceed the file already. When you turn this option off, all this routine does is return the next sequential number. The implication of this is that every file you look at is considered unique - which is the situation if you do not use any links.

    The real question is what is happening in Mac OS to make this not work, and what needs to be done to fix it.

    Watch it for a few weeks, and if it looks to be solved, I'll at least put a caveat in the readme file that the option should be set to false for Macs. I'll also try to research how os.stat works under Mac OS.
     
  12. cweb

    cweb New Member

    106
    0
    May 29, 2004
    Fabulous. I'll report back if I find any issues.
     
  13. curt1s

    curt1s New Member

    15
    0
    Jul 5, 2007
    Hello all,

    I am trying to set up and run pytivo video manager for Windows, but I am running into a problem, and maybe someone can help me. I installed hmeforpython and read the README and set it up like it suggested. I then read the README for your application, and did the same. I run the server as so:

    C:\Users\ch1\Downloads\hmeforpython-master>start.py
    HME Server for Python 0.20
    Sat Dec 29 17:56:23 2012 PyTivo Video Manager version 2.1b module initializing
    Cache file does not exist - no thumbnails loaded
    Sat Dec 29 17:56:23 2012 Server Starts
    Registering: clock
    Registering: tictactoe
    Registering: vidmgr


    When I go to my tivo, I see the apps there, but when I click on any of them I just get a "Please wait..." message, which is on the screen for a really long time then I get this error:

    "An error occured while running the application. HTTP failure (Http connection error: 0x50005)"

    Any idea what I might be doing wrong?

    NOTE: I updated the vidmgr install, but still no luck running any of the hme apps.

    I am running a Tivo Series3.


    Thanks,
     
  14. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    First of all, unless you are working with SD tv's and/or tivos, I recommend that you move to vidmgr 2.0. I haven't done any maintence on the original program (which is what version 0.7c is) for over a year and a half. 2.0 has many more features and is more likely where I'd make enhancements. Of course - it is HD only.

    Now to your problem. Does this happen with ALL of the apps? or just with vidmgr? Is there ANY other information printed on computer screen. You give the first bit of the output there where the apps register, but does anything appear after that? I need more information.

    What is your environment? Are you running this on a windows system or linux (or Mac OS)? How exactly are you running it? Are you starting it in the foreground of a terminal session? or are you running it in the background?

    Do you have pytivo configured and running? Vidmgr relies on pytivo for the actual heavy lifting.
     
  15. curt1s

    curt1s New Member

    15
    0
    Jul 5, 2007
    Yeah I upgraded to 2.0, like you suggested.

    I think I have it all fixed now. I had to change the beacon method in hmeforpython.
     
  16. curt1s

    curt1s New Member

    15
    0
    Jul 5, 2007
    Nevermind, got all my errors figured out! Thanks!
     
  17. curt1s

    curt1s New Member

    15
    0
    Jul 5, 2007
    By the way, do we have to manually create metadata for mpgs and avi files? If so, what tool do you recommend? I tried used MetaGeneratorV2.0.6.1 but no matter what movie I typed in, it did not work.
     
  18. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    That depends on from where they come. If the .mpg files came from a TiVo originally, then using kmttg will allow the user to have the metafiles created automatically. Other sources may offer other options, or not, as the case may be.

    As I mentioned, for transfers from the TiVo, use kmtttg. If you wish to use Metagenerator, you need to upgrade to the newest version. The web sites have changed their formats ove time, and in order to use them, you need Metagenerator version 3.
     
  19. cweb

    cweb New Member

    106
    0
    May 29, 2004
    On my Mac, when I delete a show using Vid Manager using the clear-thumbs up combo, it works mostly as expected. The file is removed from the list and from my hard drive. However, when I look at my Terminal log, it states that the delete has failed.

    This is mostly an FYI, since the program is doing what it is suppose to. It just the error reporting that is incorrect.
     
  20. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    When you delete a video, vidmgr attempts to delete not only the video file itself, but also the metadata file and the artwork. For the latter two, it looks both in the main directory and in the .meta subdirectory. One by one, it attempts to delete the file (without checking for its existance first) using python's os.delete method. If this method reports failure, you will get the message you mentioned. This is most likely the case since I doubt that you have all five of these files.

    This is working as designed. I felt it sort of redundant to check for a file's presence first if I was only going to delete it. I guess I could have been more aware of the nature of the failure, but I finally decided it wasn't really necessary.
     

Share This Page