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. Oct 2, 2011 #421 of 735
    jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    Have not installed 2.0c just yet but found a pretty big bug in 2.0a.

    I have two Tivo Premieres. If I access vidmgr and request a video, vidmgr reports it is cued for transfer to the tivo I am on. It transfers to the other one. I have checked the tivo config in vidmgr.ini watching the pytivo cmd window, its getting and executing a command to send to the wrong tivo. Something is not matching up.
     
  2. Oct 7, 2011 #422 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I have two tivos too - although they are both series 3's. I have pushed successfully to both of them, although admittedly it's been a while since I've done so to the Family Room tivo. I'll look at the code this weekend to see if I can see anything.

    Edit: Actually I just looked at the code. You are saying that the message properly identifies the Tivo, but that the push goes to the wrong Tivo. The push does not use the Tivo Name - for that purpose, the tivo is identified by TSN. But both the name and TSN are read in in parallel and I don't see where the logic breaks down. The same index is used to retrieve the name and the TSN in successive statements. I will do some testing, but are you certain that you are using the correct TSN's in your ini file?
     
  3. Oct 8, 2011 #423 of 735
    jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    I rechecked the tsns in the vidmgr.ini against those in pytivo.conf and my tivo account. I have 2 tivos named Thornolis HT and Thornolis 2. While viewing Thronolis HT and using vidmgr I select a vid and it says it is sending. Watching pytivo and the commands it executes, the vid is sent to Thornolis 2. Have not tried the inverse but something is mixed up. Perhaps I can restart the tivos and pytivo yet again and see if anything changes but they have each been restarted multiple times in the last week for other reasons.

    If I use pytivo's web interface to push a vid, it goes to the unit selected.
     
  4. Oct 8, 2011 #424 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I just put some debugging statements into vidmgr and tried pushing to both of my tivos. I even changed the names of my tivos so they sorted in a different order.

    Everything worked as expected - the proper videos were pushed to the proper tivo.

    I'm not saying there is not a bug, but it is eluding me based on the information I have so far.

    Is anybody else experiencing this?
     
  5. Oct 9, 2011 #425 of 735
    jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    It could very well be something odd in my system or network. Any suggestions on how I might find the trouble or where its tripping, I'd be grateful to spend some time looking. Just not sure what else to check.
     
  6. MiltonDorkenhoff

    MiltonDorkenhoff New Member

    10
    0
    Nov 20, 2007
    In a few posts from 2008, there was a discussion of using pyTivoX on a mac to provide EyeTV mpegs to a TivoHD. From the thread, I thought support was added to pyTivoX, but maybe not.

    I've installed the latest EyeTV (3.something), as well as pyTivoX (1.3). From my TivoHD's Now Playing list, I can see the EyeTV recording directory and navigate through it to find recordings, but as was discussed in the old thread, they are named cryptically - like "000123433232".

    The NPL name is the same as what's on the Mac, but on the Mac, the cryptically named file is in a directory with the series and episode name (e.g. the directory would be called "House - whatever" and in there would be a cryptically named mpeg, along with an mp4 and a couple of other files).

    Is there a config option somewhere to get pytivoX to use the parent directory name for the mpeg?

    Thanks
     
  7. wmcbrine

    wmcbrine Ziphead

    10,366
    22
    Aug 2, 2003
    I did add support for EyeTV, two years ago tomorrow. But you'd need something newer than pyTivoX 1.3, which is from August 2009.

    Anyway, it's off-topic for this thread. You should take it to the pyTivo thread, or the pyTivo forum.
     
  8. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I finally got back to messing around with this and still can't come up with a good way to create a virtual share for TV shows and one for movies. I've tried:

    Code:
    values=isEpisode=true,True,TRUE
    for TV shows and
    Code:
    values=isEpisode=false,False,FALSE
    for Movies, but both virtual shares end up exactly the same. My metadata files contain "isEpisode: false" so that should work, right?
     
  9. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    and
    are incorrect syntax. The second '=' should be a colon ':'. So this should be
    Code:
    values=isEpisode:true,True,TRUE
    etc.

    Hopefully this will work - let me know if it doesn't.

    Also, I'm not against an enhancement that allows a virtual share to be built based on file location instead of just metadata. If you want that, let's come up with a design and I can see how difficult it would be to add.
     
  10. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    That was a typo in my post. In my vidmgr.ini file I do have the correct syntax. Sorry about that.
     
  11. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I added the following lines to my vidmgr.ini:
    Code:
    [test episode]
    values = isEpisode:True,true,TRUE
    
    [test not episode]
    values = isEpisode:false,False,FALSE
    
    and it worked like a charm. I got two virtual shares, one named "test episode" that contained only videos that had isEpisode to true, and a second named "test not episode" where the same metadata item was false. It demonstrated to me that my metadata needs some cleaning up, but the two shares were definitely disjoint.
     
  12. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Ok, I found my problem. I didn't understand that a virtual share could only have one of either values or tags. I was trying to do:

    Code:
    [TV Shows by Genre]
    tags=vPrimaryGenre
    values=isEpisode:false,False,FALSE
    
    [Movies by Genre]
    tags=vPrimaryGenre
    values=isEpisode:true,True,TRUE
    
    So I fixed that to just use the values line and it worked as you described. Unfortunately I can't use vPrimaryGenre as the group by because I get an error that the grouping item can't be a list (I guess due to multiple vPrimaryGenre values in the metadata?).

    Close enough, though, thanks!
     
  13. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Windracer

    I saw your response last night, but it wasn't until later that it suddenly hit me. I think I have a solution to what you want to do, but it depends on if my assumptions are true.

    Assumption number 1: I am unfamiliar with the metatage vPrimaryGenre - I assume this is your invention.

    Assumption number 2: I assume based on the name, that you only ever have a single item for this tag - that being the main genre for the video.

    If these are both true, then your solution is simple - just remove the 'v' from the tag name (vPrimaryGenre becomes PrimaryGenre) and it will no longer be parsed as a list. Vidmgr uses basically the same metadata parsing algorithm as pytivo (and I believe this is a tivo convention) - all tags that start with a lower case v can occur multiple times and are therefore parsed as a list - EVEN IF THERE IS ONLY 1 OCCURRENCE.

    Remove the v, it will no longer be a list, and can be then used as your grouping item.
     
  14. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    vPrimaryGenre was added by Metagenerator 3 so that vidmgr users wouldn't have these long lists of genres due to crazy data like "20th Century Fox" or "Science-Fiction" vs "Sci-Fi" and such. Unfortunately, it IS a list (a file can have multiple vPrimaryGenre items) but I'll play around and see what happens.

    Thanks again!
     
  15. jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    I ended up defining two seperate pytivo video shares for television and movies. Now the movies by genre lists are correct, the folder itself presents an overall alphabetical list by title. The television shows I do not sort by genre, only by show, season.
     
  16. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Ok, yeah, splitting my physical pyTivo shares might be the way to go, good idea.
     
  17. cweb

    cweb New Member

    106
    0
    May 29, 2004
    Been using videomgr .7c on my Mac for a while with good success. Although I read this thread regularly, somewhere I had a mind cramp and missed that there is a version 2. Can I run both versions simultaneously?
     
  18. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Whoever wrote notepad.exe should be strung up by their gonads. For a Windows flat text editor, I heartily recommend Edit Plus, although I prefer Verison 2 to Version 3. It also runs just fine under wine.
     
  19. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    It should not take that long to build the cache.

    Not even with that many videos.
     
  20. lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    No problems here. I have two S3 TiVos and a THD. Pushes always go to the correct TiVo. Well, they always go to the SELECTED TiVo. I don't always select the correct TiVo. :mad:
     

Share This Page