|
| Author |
Message |
wgw
Joined: 06 Jan 2008 Posts: 284
|
Posted: Wed Dec 31, 2008 8:53 pm Post subject: pyTivo Video Templates |
|
|
These are pyTivo video template files. They control how the information in your metadata files (title, episodetitle, episodenumber, etc) is displayed on the TiVo. Download the template file of your choice and replace the files in the pytivo plugins/video/templates folder with these files.
Update: As of 01-11-2009, these templates only work properly with the wgw and wmcbrine versions of pytivo. All other pytivo versions have a line of code that needs to be removed to make them compatible with these templates.
pytivo_video_template-EpNumber-preceeds-EpTitle.zip: Updated 01-11-2009. This template displays the episode number in front of the episode title. This lets you see what the episode numbers are without having to drill down into the item detail. Episode title will appear as "201 See No Evil" vs. "See No Evil".
pytivo_video_template-SeriesTitle-EpNum-EpTitle.zip: Updated 01-11-2009. This template creates the Title by concatenating the SeriesTitle, EpisodeNumber, and EpisodeTitle. Title will appear as "NCIS 201 See No Evil" vs. "NCIS"NCIS 201 See No Evil
See No Evil
pytivo_video_template-TiVoStandard.zip: Updated 01-11-2009. This template will display metadata on the tivo in the default tivo format. _________________ Download pyTivo
my pyTivo branch
Last edited by wgw on Sun Jan 11, 2009 11:01 pm; edited 18 times in total |
|
| Back to top |
|
 |
PaulS
Joined: 05 Jan 2008 Posts: 184
|
Posted: Wed Dec 31, 2008 9:52 pm Post subject: |
|
|
| I like this tweak a LOT. So, given the above templates, how would the information be displayed on the TiVo ? |
|
| Back to top |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 284
|
Posted: Wed Dec 31, 2008 9:58 pm Post subject: |
|
|
| PaulS wrote: | I like this tweak a LOT. So, given the above templates, how would the information be displayed on the TiVo ? |
Well, the easiest way to explain this would be to show a picture of the screen. But I don't have a digital camera. Perhaps someone with a camera could send me a pic or two and I'll try to add them to my post. _________________ Download pyTivo
my pyTivo branch |
|
| Back to top |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 284
|
Posted: Thu Jan 01, 2009 1:14 am Post subject: |
|
|
Added a third template and expanded the descriptions. Hopefully this provides enough of an explanation without needing pictures. _________________ Download pyTivo
my pyTivo branch |
|
| Back to top |
|
 |
jcthorne
Joined: 30 Jan 2008 Posts: 243 Location: Houston, TX
|
Posted: Thu Jan 01, 2009 1:32 am Post subject: |
|
|
This is GREAT, now everyone can have this display the way they want.
THANKS! |
|
| Back to top |
|
 |
billdog79
Joined: 05 Jan 2008 Posts: 57 Location: Gulf Breeze, FL
|
Posted: Thu Jan 01, 2009 6:53 pm Post subject: |
|
|
I am trying to use the first template to add the episode number to the title of my shows.
My problem is that my metadata txt files don't seem to include the episodeTitle field. Only the title field. So I only get the episode # on the tivo without the title.
I am using the latest version of metagenerator to create the files. Would this be a problem with that program or something that can easily be addressed over here.
Thanks in advance.
Edit: I just verified that if I add the episodeTitle field to my files, it displays correctly on the tivo.
So we either need Metagenerator to generate the episodeTitle field or this template to read from the Title field. Whichever is the easiest.
Thanks. |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1420
|
Posted: Thu Jan 01, 2009 7:33 pm Post subject: |
|
|
| billdog79 wrote: | I am trying to use the first template to add the episode number to the title of my shows.
My problem is that my metadata txt files don't seem to include the episodeTitle field. Only the title field. So I only get the episode # on the tivo without the title.
I am using the latest version of metagenerator to create the files. Would this be a problem with that program or something that can easily be addressed over here.
Thanks in advance.
Edit: I just verified that if I add the episodeTitle field to my files, it displays correctly on the tivo.
So we either need Metagenerator to generate the episodeTitle field or this template to read from the Title field. Whichever is the easiest.
Thanks. |
From the zip file, edit container.tmpl. Look for the following lines:
| Code: |
#if $video.episodeTitle or $video.episodeNumber != '0'
#if $video.episodeNumber != '0'
<EpisodeTitle>$escape($video.episodeNumber) $escape($video.episodeTitle)</EpisodeTitle>
#else
<EpisodeTitle>$escape($video.episodeTitle)</EpisodeTitle>
#end if
#end if
|
And change each occurrence of "video.episodeTitle" to "video.title". |
|
| Back to top |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 284
|
Posted: Thu Jan 01, 2009 8:21 pm Post subject: |
|
|
| billdog79 wrote: | I am trying to use the first template to add the episode number to the title of my shows.
My problem is that my metadata txt files don't seem to include the episodeTitle field. Only the title field. So I only get the episode # on the tivo without the title.
I am using the latest version of metagenerator to create the files. Would this be a problem with that program or something that can easily be addressed over here.
Thanks in advance.
Edit: I just verified that if I add the episodeTitle field to my files, it displays correctly on the tivo.
So we either need Metagenerator to generate the episodeTitle field or this template to read from the Title field. Whichever is the easiest.
Thanks. |
Yes, the episode title belongs in the episodeTitle field. The metagenerator should be updated to include episode title. Here is an example of a complete metadata file for an episodic show.
| Code: | description : Dharma runs for office.
seriesTitle : Dharma & Greg
episodeTitle : See Dharma Run
episodeNumber : 216
title : Dharma & Greg
isEpisode : true
originalAirDate : 1999-02-10T00:00:00Z
seriesId : SH225826
time : 2009-01-01T16:30:00Z
displayMajorNumber : 0
callsign : WE
showingBits : 262659
tvRating : x5
vProgramGenre : Holiday
vProgramGenre : Sitcom
vProgramGenre : Valentine's Day
vDirector : Berlinger|Bob
vActor : Elfman|Jenna
vActor : Gibson|Thomas
vActor : Kennedy|Mimi
vActor : Rachins|Alan
vActor : Sullivan|Susan
vActor : Ryan|Mitchell
vActor : Murray|Joel
vActor : D'Lyn|Shae
vSeriesGenre : Sitcom
vSeriesGenre : Comedy |
_________________ Download pyTivo
my pyTivo branch |
|
| Back to top |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 284
|
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Mon Jan 05, 2009 2:52 am Post subject: Re: pyTivo Video Templates |
|
|
| wgw wrote: | As of 01-01-2009, these templates only work properly with the version of pytivo in my git repository. All other pytivo versions have a line of code that needs to be removed to make them compatible with these templates. |
Fixed in my repo now. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 284
|
Posted: Sun Jan 11, 2009 8:34 pm Post subject: |
|
|
Fixed problem with TiVo Standard template, here and in my git branch. _________________ Download pyTivo
my pyTivo branch |
|
| Back to top |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 284
|
|
| Back to top |
|
 |
lrhorer
Joined: 04 Mar 2008 Posts: 153
|
Posted: Sat May 23, 2009 10:12 pm Post subject: |
|
|
Would it be physically possible to have the programs displayed differently in the pyTivo share folder and the main NPL after the program is transferred?
For example, the Harry Potter franchise has names like Harry Potter and the Prisoner of Azkaban. That's cumbersome. So for such franchises, I set isEpisode to "True", title to "Harry Potter", episodeTitle to "...and the Prisoner of Azkaban", and seriesTitle to "Harry Potter and the Prisoner of Azkaban". I place all the episodes in the "Harry Potter" subdirectory. This means when I drill into the subdirectory, "Harry Potter" is displayed at the top and all the suffix names are on the individual lines. Perfect.
Once transferred, however, the program title is just "Harry Potter", and one must drill into the episode to see what the full name is. Other things I have tried may place the title suffix only on the NPL, but nothing I have tried will keep only the suffix on the pyTivo folder list yet cobble together the entire name for the transferred NPL entry. |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1420
|
Posted: Sun May 24, 2009 8:44 pm Post subject: |
|
|
| lrhorer wrote: | Would it be physically possible to have the programs displayed differently in the pyTivo share folder and the main NPL after the program is transferred?
For example, the Harry Potter franchise has names like Harry Potter and the Prisoner of Azkaban. That's cumbersome. So for such franchises, I set isEpisode to "True", title to "Harry Potter", episodeTitle to "...and the Prisoner of Azkaban", and seriesTitle to "Harry Potter and the Prisoner of Azkaban". I place all the episodes in the "Harry Potter" subdirectory. This means when I drill into the subdirectory, "Harry Potter" is displayed at the top and all the suffix names are on the individual lines. Perfect.
Once transferred, however, the program title is just "Harry Potter", and one must drill into the episode to see what the full name is. Other things I have tried may place the title suffix only on the NPL, but nothing I have tried will keep only the suffix on the pyTivo folder list yet cobble together the entire name for the transferred NPL entry. |
Hrmm, that might be possible. I was working on the templates for some other reasons today and noticed that the title and episode title are set in two places each. It might be possible to set the two locations separately to achieve what you want. |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1420
|
Posted: Sun May 24, 2009 8:54 pm Post subject: |
|
|
Here are two more variations:
pytivo_video_template-SeriesTitle-EpNum-EpTitle-and-EpNumber-preceeds-EpTitle-PadEpNumber.zip: Updated 05-24-2009. This template displays the episode number in front of the episode title AND creates the Title by concatenating the SeriesTitle, EpisodeNumber, and EpisodeTitle AND pads the EpisodeNumber to 4 digits when used in the Title and Episode title (the real EpisodeNumber is unchanged). Title will appear as "NCIS 0201 See No Evil" vs. "NCIS". Episode title will appear as "0201 See No Evil" vs. "See No Evil". This lets you see what the episode numbers are without having to drill down into the item detail and sorts properly for series having more than 10 seasons. NCIS 0201 See No Evil
0201 See No Evil
pytivo_video_template-SeriesTitle-EpNum-EpTitle-and-EpNumber-preceeds-EpTitle.zip: Updated 05-24-2009. This template displays the episode number in front of the episode title AND creates the Title by concatenating the SeriesTitle, EpisodeNumber, and EpisodeTitle. Title will appear as "NCIS 201 See No Evil" vs. "NCIS". Episode title will appear as "201 See No Evil" vs. "See No Evil". This lets you see what the episode numbers are without having to drill down into the item detail. NCIS 201 See No Evil
201 See No Evil |
|
| Back to top |
|
 |
|