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. May 16, 2011 #61 of 735
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Ok, I got thumbnail images working ... as long as the files are in the same directory as the videos. Any chance on allowing them in the .meta directory with the metadata files? I tried moving them in there but then they don't show up.
     
  2. May 16, 2011 #62 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Shouldn't be too difficult. If I get a chance, I'll look at it when I get home tonight. Two or three days at the most
     
  3. May 16, 2011 #63 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Version 0.2e is now available at github - see my signature for a link.

    This version supports artwork in the .meta subdirectory. Search order for thumbnail art:
    1) <fn>.jpg
    2) .meta/<fn>.jpg
    3) folder.jpg
    4) .meta/folder.jpg

    I didn't really put this through the paces - it was a very easy change. Please let me know if I screwed something up.
     
  4. May 16, 2011 #64 of 735
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Hmmm ... not working for me. They show up in the normal folder, but not when in the .meta folder. Any type of debugging or logging I can enable?
     
  5. May 17, 2011 #65 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Let me try a few things tonight - like I said I didn't put it through the paces so maybe I overlooked something.

    Sorry about that
     
  6. May 17, 2011 #66 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    OK - it was a stupid mistake. Version 0.2f properly implements the artwork feature. This time I actually did some testing.
     
  7. May 17, 2011 #67 of 735
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Yup, that did it. Thanks!! :up:
     
  8. May 18, 2011 #68 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I had to deliver another fix. I closed up two holes - both having to do with video deletion. 1) if the meta file was in the .meta directory it was not being deleted, and 2) the artwork file, regardless of what directory it was in, was not being deleted.

    These have been fixed. Follow the link in my signature to get the update.
     
  9. May 20, 2011 #69 of 735
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I gave ThumbGen a try and managed to get it to automatically download the thumbnails for my movies and drop them, correctly named, in each .meta folder of my video library. I had to do some minor cleanup where it picked the foreign language image (for whatever reason) other than that it worked pretty well.

    Pretty neat. :up:
     
  10. May 20, 2011 #70 of 735
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Two quick things:

    - in the README.TXT, there's a typo:

    I think that should be 444, not 44?

    - any reason why vidmgr is hiding .TiVo files? I added it to my exts= line in config.ini but they don't show up. They do appear in pyTivo.
     
  11. May 20, 2011 #71 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    You are correct. I will fix the readme. Sorry if this caused an issue for you.

    I updated git, but did not change the version number.
     
  12. May 20, 2011 #72 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Didn't see your second question - no reason to hide the .tivo files. I just don't have any in my collection so I never included them. They should show up if you include them in the exts line. This is the line that does this check:

    if os.path.splitext(name)[1].lower() in goodexts:

    so in other words, the file extension is forced to lower case and compared with what you have in your exts. Do you have mixed case in your config file? Try it with all lower case and see if that works. I can also just force both of them to lower.

    This is one of those things that is difficult between Windows (which is not case sensitive for file names) and linux (which is). No matter which way I choose, somebody isn't happy.

    Let me know if that was your issue.
     
  13. May 20, 2011 #73 of 735
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Yep, that was it. I'm on Linux so I put .TiVo in my config.file. Changed that to just .tivo and they show up now. Thanks!
     
  14. May 23, 2011 #74 of 735
    jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    Could you take a look at the .nfo and .tgmd files it generates and see if it might be possible to parse out the pytivo metadata .txt file from the info they contain?
     
  15. May 23, 2011 #75 of 735
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I turned off all the metadata stuff and was using it just for thumbnails. The moviescreens it could generate were pretty neat, though. To bad we can't use those with vidmgr!

    If I get a chance, I'll see if I can check those files ...
     
  16. May 23, 2011 #76 of 735
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    Loaded this app up yesterday, and it's pretty nice. Thanks for making it available.

    I ran into a problem with directory/share traversal. I have lots of pyTivo shares defined (>30) and when I navigate to shares on the second and subsequent pages for directories/shares, and then enter a directory (share), the files within that share are wrong, they typical display files from shares that would be on the first page. It's like the offsets are off.

    Just curious how others deal with displaying TV series. I prefer chronological sort of <series>.sXXeYY, so alpha sorting on title doesn't work for me.
     
  17. May 23, 2011 #77 of 735
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    My TV series are in a folder labeled TV Shows. Then seperate folders per series. Then in each series folder I have a folder for every season. This is just how the program I use organizes my content though.

    As a result all of my listings are just alphabetical. The episodes seem to be in order by episode number though.
     
  18. May 23, 2011 #78 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I do something similar to innocentfreak. I have a single share and under that I have folders for TV, Movies, Podcasts, Sports, and Home Movies. And then under these, I organize. For example, under Movies, I have 8 or 9 genre, and under TV, I have a folder for each show title (and under that I have a folder for each season). I have the episode number - and sometimes the season number - as the first part of the file name and as the first part of the title in the metafile. That way they sort into episode order in pytivo and windows, as well as on my PS3. I find this organization works well for me.

    Reneg - could you explain a little better about the issue you are seeing where it is displaying the wrong thing? I wouldn't be surprised if there was a bug or two lurking in there somewhere, but I need to know the exact curcumstances under which it occurs if I'm going to fix it.

    It almost sounds, from your explanation, that you have shares within shares.
     
  19. May 23, 2011 #79 of 735
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    My directory structure is flat. I have one share per TV series, and under each share is all the episodes of that series. I have enough shares that I have to scroll down to see them all. I think to recreate, it was as simple as scrolling down twice and selecting a directory. For example, scrolling down to the Modern Family share, I would get episodes to Big Bang Theory displayed. I'll verify the steps when I get home tonight. It behaved the same on a Tivo HD & a Premiere.

    [Edit] If I scroll down one page on the shares screen and select a directory, it pulls the episodes from the first entry on the previous page. For each position I move down on the second page of shares, it pulls the episodes from the first page. Second row, second page pulls second row, first page. Third row, second page pulls third row, first page. First row, third page pulls first row, first page. etc..
     
  20. May 24, 2011 #80 of 735
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    I just started playing around with this. Very cool! My wife would love to be able to push from the Tivo rather than having me push from the browser interface.

    How would I go about changing the sorting order to be based on filename rather than metadata? Or how about only using the metadata Title rather than seriesTitle:Title? My files are all jumbled up with alphabetical sorting right now.

    If I want to use the HD menu on vidmgr, do I need to actually be using the HD menu on my Tivo or can a resolution change be forced in the application?
     

Share This Page