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

    philhu User Since Day ONE!

    831
    0
    Apr 11, 2001
    Funcity, MA
    The values I show above are the advisories. Theoretically, pyTivo can set all the fields, so it might take code in pyTivo to do it, but it can take all of them to the tivo.

    The mpaa ratings and or tv ratings are in the zap2it xml files.

    I gave my series file with keywords we used to use.

    We need to find out what fields pyTivo can take or if extra ones can be added.

    So, after we get that info, my tivobits stuff, and a slice file example I posted a bit above can probably set EVERYTHING!

    Tivobits are IMPORTANT! Those are the items that show in the parens in the description. And it did show rating formats
     
  2. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    From what I have read, zap2it labs have closed their free service in September this year and they no longer offer developers the ability to get their data in XML format. I tried to find some other places, but you have to pay for them (Schedules Direct), XMLTV (don't know much about it, but some people I have found have complained about them.

    I don't want to screen scrape because it's usually against the websites use policy and it's really just not a nice thing to do.

    The only alternative we have that I know of is what I am using already (theTVdb.com and movie-xml.com). I have posted on previous pages examples of the data that I can get from those places...so that's about as good as it's going to get.

    Now if someone else knows of a better place to get the data (preferably XML) let me know and I will try to use that data...
     
  3. dlfl

    dlfl Cranky old novice

    6,995
    16
    Jul 6, 2006
    Near...
    starRating applies only to movies AFAIK. Anyway pyTivo will handle it if you add the following code at two places in template TvBus.tmpl:

    Code:
              <showType value="$video.showType[1]">$video.showType[0]</showType>
    [COLOR="Red"]          #if $video.starRating
              <starRating value="$video.starRating[1]">$video.starRating[0]</starRating>
              #end if[/COLOR]
              <title>$escape($video.seriesTitle)</title>
    The added code is marked in red (the other lines are there so you can tell where to add).

    The line you need in the metadata text file is:

    starRating : x#

    Where # is a numeral from 0 to 7.

    The actual number of stars you get is (# + 1)/2, e.g., for # = 7 you get four stars. The 'x' does nothing but must be there. This works similar to the tvRating as described in MasterCephus metadata notes.

    Note this doesn't appear to the be the way Armooo intended this to work. From reading the code it appears a 2-tuple, e.g., (FOUR 7), is expected. However the code that reads the metadata file just reads in a string and never creates the tuple. (Or else I don't know how you format the metadata file line to make it read in as a tuple.) Thus the $video.starRating[0] is the first character of the string (e.g., 'x') and $video.starRating[1] is the second character (e.g., the #).

    By serendipity, the Tivo apparently doesn't care. It ignores the 'x' and uses the # and that seems to be all it cares about, which is the same behavior noted by MasterCephus for the tvRating item. This actually simplifies things for the user since otherwise a matching tuple would have to be supplied -- you would have to know that FOUR goes with 7. If you supply a tvRating tuple that DOESN'T match such as (NR 5) or (_14 7) you blow off most of the metadata from the tivo display, the "common error" defined in the metadata notes (I learned by trial and error).
     
  4. Eagle784

    Eagle784 New Member

    2
    0
    Dec 26, 2007
    Sorry if this has already been covered, but can pytivo (or any add-on, or any other streaming solution) automatically convert and transfer files to the tivo, without having to go to the tivo to request it? Thanks.
     
  5. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    The only problem that I see is that there is no way to convert the IMDB score to a 4 star system...

    by looking at the movies i have, I am looking at numbers like 5.6, 7.8, 8.6, etc...

    How would you go about converting those to a 4 star system?
     
  6. Eagle784

    Eagle784 New Member

    2
    0
    Dec 26, 2007
    Divide the IMDB score by 2.5 and round to the nearest half a star?
     
  7. rgr

    rgr Member

    582
    6
    Feb 21, 2003
    Thanks for the advice and the pointer on where to look to make a mod. I've modded my transcode.py so that I now see the entire video have a really thin black border around the transcoded video.

    Much appreciated!
     
  8. wgw

    wgw New Member

    217
    0
    May 16, 2007
    You could multiply by 0.749 and round up or down to nearest whole number. This should ensure you always get a number between 1 and 7.

    I would still like to see the IMDB rating at the end of the description though. It's more meaningful than the old four star system.
     
  9. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    Yeah I was going to keep that at the end anyways...

    Is everyone ok with doing the stars like this? If so, I will add this into the next release of the MetaGenerator...
     
  10. hotwire32

    hotwire32 New Member

    19
    0
    Aug 18, 2007
    Okay here is what I did, I installed 182_setup. That worked great except for the subfolders and lack of MetaData.

    So I downloaded D4219 exctracted it, copied it to the pyTivo folder, and made the adjustments in the wiki tickets and now I can't see the pyTivo shares. My config.py is pretty basic am I missing stuff and that's why I'm not see in these any more?

    [TiVoMovies]
    type = video
    path = \\linkstation1\usbdisk1\~Movies

    [Server]
    ffmpeg = C:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    auto_subshares = True
    width = 544
    guid = {E01E82E2-65E0-4740-B795-C1CCA3391022}
    port = 9032

    [Smallville]
    type = video
    path = \\linkstation1\usbdisk1\Smallville

    [Melrose Place]
    type = video
    path = \\linkstation1\usbdisk2\Melrose Place

    [Drive2]
    type = video
    path = \\linkstation1\usbdisk2

    [Drive1]
    type = video
    path = \\linkstation1\usbdisk1

    BTW I love the pyTivo MetaData generator :D
     
  11. dlfl

    dlfl Cranky old novice

    6,995
    16
    Jul 6, 2006
    Near...
    Just a hunch but set up a share on your C: drive. I suspect it's related to the double backslashes.

    Also the auto_subshares must be within a share section(s).
     
  12. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    It was up before you posted...
     
  13. hotwire32

    hotwire32 New Member

    19
    0
    Aug 18, 2007

    The double slashes are the only way I could get the network drives to show up in the 182 version. Is this were the auto_subshares should go? Here is how I've change the pyTivo.conf:

    [TiVoMovies]
    type = video
    path = \\linkstation1\usbdisk1\~Movies

    [Smallville]
    type = video
    path = \\linkstation1\usbdisk1\Smallville

    [Melrose Place]
    type = video
    path = \\linkstation1\usbdisk2\Melrose Place

    [Drive2]
    type = video
    auto_subshares = True
    path = \\linkstation1\usbdisk2

    [Drive1]
    type = video
    auto_subshares = True
    path = \\linkstation1\usbdisk1

    [Server]
    ffmpeg = C:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    width = 544
    guid = {E01E82E2-65E0-4740-B795-C1CCA3391022}
    port = 9032
     
  14. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    what I do is just map a networked drive and use the drive letter....I've had no problems...
     
  15. hotwire32

    hotwire32 New Member

    19
    0
    Aug 18, 2007

    Okay I've changed to local drives and pyTivo still isn't showing up on the list any more :(

    [TiVoMovies]
    type = video
    path = v:\~Movies

    [Smallville]
    type = video
    path = v:\Smallville

    [Melrose Place]
    type = video
    path = U:\Melrose Place

    [Drive2]
    path = u:\
    type = video
    auto_subshares = True

    [Server]
    ffmpeg = C:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    guid = {E01E82E2-65E0-4740-B795-C1CCA3391022}
    port = 9032
    width = 544

    [Drive1]
    path = v:\
    type = video
    auto_subshares = True
     
  16. wgw

    wgw New Member

    217
    0
    May 16, 2007
    You can't set path to the drives root, only a subfolder.
     
  17. hotwire32

    hotwire32 New Member

    19
    0
    Aug 18, 2007
    Really that's odd because with the 182 version I can. I've rolled back to 182 and I'm using the following pyTivo.conf:
    [TiVoMovies]
    type = video
    path = \\linkstation1\usbdisk1\~Movies

    [Smallville]
    path = \\linkstation1\usbdisk1\Smallville
    type = video
    auto_subshares = True

    [Melrose Place]
    path = \\linkstation1\usbdisk2\Melrose Place
    type = video
    auto_subshares = True

    [Drive2]
    type = video
    auto_subshares = True
    path = \\linkstation1\usbdisk2

    [Server]
    guid = {E01E82E2-65E0-4740-B795-C1CCA3391022}
    port = 9032
    width = 544
    ffmpeg = C:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe

    [Drive1]
    type = video
    auto_subshares = True
    path = \\linkstation1\usbdisk1

    Aside from subfolders and meta data not working I can view all of my shows that are at the top level. I would just rather not have them all have to be in one big long list (this is also the same share for my LinkTheater systems)
     
  18. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    I'm now using git as (I think) armooo intended... check out my fork here:

    http://repo.or.cz/w/pyTivo/wmcbrine.git

    And even if you don't want to use git, you can grab a complete package from the "snapshot" link off of any item on that page (preferably the topmost).
     
  19. dlfl

    dlfl Cranky old novice

    6,995
    16
    Jul 6, 2006
    Near...
    What is this? d4219 with all the subsequent ticket fixes ? I hope so -- will save new users and me a lot of posting time.

    Note: The snapshot downloads are .Tar.gz format. Windows users will want to install something like ***7-zip*** to extract from them. This is a free nifty solid utility that I can recommend. It also unpacks .rar files.
     
  20. Warren

    Warren Wild Hair

    7,231
    0
    Oct 18, 2001
    I am so confused trying to get this to work.

    can't you just make an installer that installs and configs everything on its own?
     

Share This Page