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

pyTivo - Transcoding server

Discussion in 'TiVo Home Media Features & TiVoToGo' started by armooo, Nov 25, 2006.

  1. Apr 2, 2010 #2721 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Yes - Ok if I change the file in the txt file - episodeTitle : 5 to 9 to episodeTitle : 5 to 9 (Recorded Feb 08,2010) this will work.

    Is there any other way of doing this without actually having to edit each file?
     
  2. Apr 2, 2010 #2722 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    You can use my hacked pyTivo templates to put the Season/episode numbers from the metadata into the title. See this thread:

    http://pytivo.sourceforge.net/forum/pytivo-video-templates-t618.html

    The latest copy of my hacked templates are here (make sure you login to the pyTivo forum as the download is only visible to members):

    http://pytivo.sourceforge.net/forum/post9307.html#9307
     
  3. Apr 2, 2010 #2723 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    That is a step closer but doesn't help when there isn't a episode # for the show.

    Is there a way I can change your file to just grab the air date?
     
  4. Apr 2, 2010 #2724 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    If you know how to code, you could compare my hacked templates to the originals to figure out how to do that. Either by including the air date in the title or by using the filename instead of the metadata title.

    The other thing you might want to try is to use the "time" metadata value to set the date stamp to "air date" rather than "date of send". That way when you sort based on date on the Tivo's Now Playing list, things will be in order.

    wmcbrine added the augmented "time" metadata handling back in Nov 09. You can put a default.txt in your folder and set time value to "OAD" and it will use the original air date for date stamping for all files in the folder (note, sub-folders need their own default.txt files since they don't recruse.) See:

    http://pytivo.sourceforge.net/forum/time-in-metadata-t1091.html
     
  5. Apr 2, 2010 #2725 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Sorry I am lost on this part - the default.txt where is the file located or stored?
     
  6. Apr 2, 2010 #2726 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Assuming your video is in:

    KMTTG\Home\Encode\House\5 to 9 (Recorded Feb 08,2010).mp4

    Then the individual metadata file corresponding to that video is:

    KMTTG\Home\Encode\House\5 to 9 (Recorded Feb 08,2010).mp4.txt

    Then you would create:

    KMTTG\Home\Encode\House\default.txt

    Any metadata you place in default.txt will be used as defaults and merged with the individual metadata files found within a given folder. For instance, if all the shows in your folder have the same seriesId, you can put the seriesId in your default.txt and then omit it from the individual metadata files. If a field shows up in both default.txt and the individual metadata files, then the individual metadata file's field value will override (hence why it's called a default.)


    See:

    http://pytivo.sourceforge.net/wiki/index.php/Metadata
     
  7. Apr 2, 2010 #2727 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    OK makes sense - but them I am still trying to understand the originalAirDate part.

    How would you set that up in the default.txt file.

    Will this follow the file over when you push/pull it to the tivo?

    Thanks for all the info so far.
     
  8. Apr 2, 2010 #2728 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Create a default.txt file and in it specify:

    Code:
    time : OAD
    Then make sure your individual metadata files do NOT contain a time field, but DO contain an originalAirDate. Then upon transfer with pyTivo pull, the date stamp for Now Playing list sorting will be set to the originalAirDate.

    You can also use the File keyword instead of OAD and the file's modify time will be used rather than the originalAirDate.

    Assuming your metadata is correct, you should end up with the oldest episodes from a given series at the bottom of your Now Playing list. And if you have valid current seriesId's set for all the files, they'll end up in a folder in order of originalAirDate.
     
  9. Apr 2, 2010 #2729 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    So you need to do this thru the Tivo(Pull) vs Push from the web interface for it to work correctly? Sorry for all the simple questions but I want to get a better understanding of it all.
     
  10. Apr 2, 2010 #2730 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Yes, the date stamp can only be sent via pulls initiated via the Now Playing list. Push transfers using the web interface do not allow the same metadata unfortunately.
     
  11. Apr 3, 2010 #2731 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    My metadata files are from KMTTG and my date still shows the date of the file vs OAD when I do a pull.
    What doesn't it like with the metadata file from KMTTG VS Metagenerator?

    If I use Metagenerator on that same show then do a pull from the NPL then the file is labeled the day before.

    So in my house example:
    title : House
    seriesTitle : House
    episodeTitle : 5 to 9
    episodeNumber : 13
    originalAirDate : 2010-02-08T00:00:00Z

    it shows up as

    "5 to 9" Sun 2/7 in the NPL why would it do that?
     
  12. Apr 3, 2010 #2732 of 5683
    moyekj

    moyekj Well-Known Member

    11,143
    31
    Jan 23, 2006
    Mission...
    The kmttg metadata file probably includes "time" field which is overriding the one in your default.txt file hence the difference.
     
  13. Apr 3, 2010 #2733 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    As moyekj pointed out and I mentioned before, your individual metadata file must NOT contain a "time" field or it will override the value specified in default.txt.

    Also, originalAirDate is specified as a GMT time. So a date of 2010-02-08T00:00:00Z GMT ends up being sometime on 2010-02-07 in most US timezones (GMT -4 to -7 currently, hence the show being labeled the day before.)
     
  14. Apr 3, 2010 #2734 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Is there a way around this so I don't have to edit each Metadata to remove the "Time" field?
     
  15. Apr 4, 2010 #2735 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Not with the current code. There are metadata Override fields for info affecting whether or not to transcode and duration, but they don't apply to where the time field is used.

    wmcbrine, what do you think about adding Override processing code to video.metadata_full() right before the episodeNumber check? This would allow using "Override_time" from default.txt so that it would replace the "time" value in any individual metadata files (as in this case with kmttg.)
     
  16. Apr 4, 2010 #2736 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Ok thanks again for all the great help/answers.

    Now when sending/pulling shows...I know you can send multiple files by selecting which ones you want can you pull a folder from the NPL? or is it only possible to do one show at a time?
     
  17. Apr 4, 2010 #2737 of 5683
    wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    For several reasons, no.

    Not yet. Folder support for both Push and ToGo is on my agenda.

    No, you can do the multi-select thing in ToGo now (since March 15th).
     
  18. Apr 4, 2010 #2738 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Is there a cleaner way to achieve what cburbs is asking wrt to how time is handled?

    I think he meant Pulling a whole folder from PC to Tivo. I don't think you can do that. You can of course queue up multiple transfers, but each video has to be set to transfer individually.
     
  19. Apr 4, 2010 #2739 of 5683
    cburbs

    cburbs New Member

    158
    0
    Jan 29, 2009
    Yes that is what I was asking if that could be done.

    Otherwise you just select them one by one and then once one finishes the other one will start correct?
     
  20. dm_

    dm_ New Member

    19
    0
    Nov 4, 2009
    Hi,

    think I've found a possible bug in the metadata parser - if I have a leading 0 on the episodeNumber field (eg 0302) then it gets interpreted as octal (tivo displays the episode number as 194. In the event that it can't be interpreted as octal (eg 0308) - you don't get an episode number on the tivo. I'd assume this is not the intended behaviour :)

    This is using a recent wmcbrine build 'pytivo-wmcbrine-17c16dd2e68f5d7856085cc7ba774759ecf44985' if thats meaningful.
     

Share This Page