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. jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    I got 0.5 installed today and it looks great. Love the new features. I updated my custom skin, placed it in a directory as stated and it worked perfectly. Had to add a few new graphics for the new elements but since your skins use easy to work with file types, was no trouble.

    I do now have a request that came from my wife flipping through TV shows. She is good a pointing out the obvious....

    In my directory structure I have a folder for each tv series. IE NCIS. Under that are a set of folders for each season and in each season folder are the episodes with thier meta data and graphics.

    I also have placed a folder.jpg in the series folder and each season folder. Would be great if vidmgr displayed those jpgs when the folder is highlighted. That way the show cover art is displayed when its title is highlighted rather than no art until the episode is selected 3 levels in. IE its as simple as when a folder is highlighed, display the folder.jpg contained in that folder if it exists. Thanks for considering this, look forward to what you come up with next.
     
  2. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    One important step I forgot to mention about installing 0.5 - don't forget to remove the metadata.py (and metadata.pyc) from the pyhme directory. The new home for these files is in the vidmgr directory. Right now, the files would be the same, so if you forget to delete the pyhme copy, no harm done. However, if this file ever changes, the changes will only be delivered to the copy in the vidmgr directory. That means you will have two identically named files with different content, and I'm not sure which one python will use - best simply to delete the copy in the pyhme directory.

    Regarding the requested changes to the metadata in the info screen, it seems that everybody wants something different, so I think I'm going to add these lists to the config file - that way you'll get exactly what you want.

    I am also looking into the folder thumbnail ides - I like it.
     
  3. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Lovin' 0.5, nice work!

    I did notice that the changelog.txt file doesn't seem to exist in git yet?
     
  4. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I forgot to include changelog - I forgot to make the changes to my build.xml to stage this file for delivery too, but you'll find it now, because.....


    I have just posted 0.5a in git. In addition to now including the changelog, I have also implemented the recently requested changes. You can place metaignore= and metafirst= lines in the config file to override the default values for metadata that is either ignored or placed first in the display.

    Also, thumbnails are now displayed for directories. It looks for a file named folder.jpg either in that directory or in the .meta subdirectory.

    As I was posting, it hit me that the new directory thumbnail logic does not apply to shares. Many people use shares differently than I do. I have a single share that has subdirectories in it, so thumbnails there didn't make sense, but I know that some people have a different share for each show - in which case showing thumbnails for the share makes sense. It should be able to easily add it if it's wanted.

    Jeff
     
  5. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Oh, excellent! What about the ability to insert spaces?

    Let me make sure I have this straight. If the file name precisely "folder.jpg", or is it <folder>.jpg, where <folder> is the name of the directory? In the case of a .meta subdirectory, that is a subdirectory of <folder>, right, not in the vidmgr directory?

    Well, I have more than 1 share, but I don't have a share for every show, or even a share for every genre, so my usage more closely resembles yours, but I can see how some people would make use of the feature.
     
  6. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Not yet - I am thinking about how to do that. I have an idea, but haven't started implementing yet. I am thinking about adding metaspace= to the config file. You'd name metadata items after which you'd like to have a space.

    the file is literally named folder.jpg - NOT the directory name, and the .meta directory is within the folder itself, not in the vidmgr directory

    I'm already well along adding this feature. It will be there in the next release.
     
  7. lew

    lew Active Member

    3,963
    3
    Mar 12, 2002
    Thank you. I didn't ask for it but I'll use it.

    It's a shame there isn't a way to select PyTivo Video Manager from either the main tivo menu or from the Now Playing list.

    I doubt it can be done, at least on a stock tivo, but it would be nice to replace the add on the main tivo menu with your application.
     
  8. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    TiVo needs to look at this application to see what the NPL should should be like, user configurations and all. This is looking better and better by the day - by the hour almost.

    One more question / request: Does the content text from the metafile have to be so far over to the right on the info screen? There's a big gap between the field name and the field text. This not only makes the fields longer, it makes it harder to read. Adding the blank line for which I have asked will help, but moving the text to the left will help even more.
     
  9. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Could you see your way to program a paged jump based on a number press? Thus, pressing the 1 button would take the user 1/10th the way down the current list, 2 will take the user 2/10s down the list, etc? With some of these shares and share folders having titles numbering in the hundreds and even the thousands, being able to jump only to the beginning the end, or up / down 14 titles doesn't really cut it, sometimes.

    (I don't suppose we could get more than 14 titles on the screen?)
     
  10. rrr22777

    rrr22777 New Member

    532
    0
    Jul 31, 2002
    Where do I put the contents of config.merge? I dont have config.ini. Running everything on linux.

    ERROR:pyTivo:hmeserver - 'type'
    ERROR:pyTivo:pytivos - 'type'
    ERROR:pyTivo:tivos - 'type'
    ERROR:pyTivo:vidmgr - 'type'
    INFO:pyTivo:192.168.0.250 [13/Jun/2011 13:10:10] "GET /TiVoConnect?Command=QueryContainer&Container=%2F&DoGenres=1 HTTP/1.0" 200 -
     
  11. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Just rename it to be config.ini and put it in the main folder where you have HME for Python installed (one level up from vidmgr). You only need to "merge" that info if you have an existing config.ini file.
     
  12. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Be aware though - if you are running without a config.ini, that means it is simply running All apps that it finds. If you want this to continue, make sure you do NOT have an apps line in the config file - if you do, then pyhme will run ONLY the named apps.
     
  13. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Version 0.5b is now on git.

    I added the following:

    - thumbnails are now displayed for shares as well as for directories. The same rules - just put folder.jpg in the root of the share or in a .meta directory that lives there.

    - added "metaspace=" to the config file to indicate if a blank line should be added to the display after the named metadata items. The default is an empty list.

    - added "infolabelpercent=" to config file to specify the width of the label on the info screen. This value should be expressed as a percent. The default value is 30, but I have found that 20 works OK for HD screens
     
  14. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Great idea - I never thought about it with my directories having at most 15 or 20 videos. It should be easy to do - let me think about it for a bit. I may call on you to do some testing since you have such huge directories.

    I think 14 is as many as we're going to see with the current layout.
     
  15. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Silly web conference software... FYI, the software interprets the sequence ":" and then "p" as a smiley face. To avoid this, put such sequences in a code frame:

    Code:
    ERROR:pyTivo:hmeserver - 'type'
    ERROR:pyTivo:pytivos - 'type'
    ERROR:pyTivo:tivos - 'type'
    ERROR:pyTivo:vidmgr - 'type'
    INFO:pyTivo:192.168.0.250 [13/Jun/2011 13:10:10] "GET /TiVoConnect?Command=QueryContainer&Container=%2F&DoGenres=1 HTTP/1.0" 200 -[/QUOTE]
     
  16. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    You are just too cool.
     
  17. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    My largest has 1893 and counting. :eek:

    Now that you mention, it (OK, OK, I mentioned it), is there any code optimization that could take place when writing the cache? The first time one enters a large directory, it takes quite a while - nearly a minute.

    Of course! I'd be more than happy to help with development testing. You can PM me or I can provide you with FTP access to my main website.

    Yeah, I figured. It would proabbly require a smaller font. I also personally don't care about the safe zone, but both could be problematical for people with smaller, less "overscanned" TVs, and you need to consider that. Of course, providing a user-defined variable that allows the user to break the rules would be a reasonable compromise, but it also probably means a headache for the developer. That would be you. :D

    It never hurts to ask, though. :)
     
  18. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Something's wrong with the git. The download never happens.
     
  19. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    You're right - I think it must be their site, I was able to retrieve it just fine with firefox though - just IE gave me problems
     
  20. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I have to think about a caching method. I made a conscious decision early that I was going to treat the directories as volatile information; I do no real caching in the program - hme provides a bit, but I simply read the entire directory every time I enter it. Perhaps it's faster the second time because of hme and/or os caching.

    This will be a tough one.
     

Share This Page