pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pyTivo Video Templates
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Hacks
 View previous topic :: View next topic  
Author Message
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Wed Dec 31, 2008 8:53 pm    Post subject: pyTivo Video Templates Reply with quote

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".
    NCIS
    201 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.
    NCIS
    See No Evil

_________________
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
View user's profile Send private message
PaulS



Joined: 05 Jan 2008
Posts: 184

PostPosted: Wed Dec 31, 2008 9:52 pm    Post subject: Reply with quote

I like this tweak a LOT. So, given the above templates, how would the information be displayed on the TiVo ?
Back to top
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Wed Dec 31, 2008 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Thu Jan 01, 2009 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message
jcthorne



Joined: 30 Jan 2008
Posts: 243
Location: Houston, TX

PostPosted: Thu Jan 01, 2009 1:32 am    Post subject: Reply with quote

This is GREAT, now everyone can have this display the way they want.

THANKS!
Back to top
View user's profile Send private message
billdog79



Joined: 05 Jan 2008
Posts: 57
Location: Gulf Breeze, FL

PostPosted: Thu Jan 01, 2009 6:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 1420

PostPosted: Thu Jan 01, 2009 7:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Thu Jan 01, 2009 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Thu Jan 01, 2009 10:48 pm    Post subject: Reply with quote

rdian06 pointed out that the Metadata wiki was outdated so I've updated it.

http://pytivo.armooo.net/wiki/MetaData

_________________
Download pyTivo
my pyTivo branch
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2034
Location: Maryland

PostPosted: Mon Jan 05, 2009 2:52 am    Post subject: Re: pyTivo Video Templates Reply with quote

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
View user's profile Send private message Visit poster's website
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Sun Jan 11, 2009 8:34 pm    Post subject: Reply with quote

Fixed problem with TiVo Standard template, here and in my git branch.
_________________
Download pyTivo
my pyTivo branch
Back to top
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Sun Jan 11, 2009 11:02 pm    Post subject: Reply with quote

OK, all three templates have been fixed and updated.
_________________
Download pyTivo
my pyTivo branch
Back to top
View user's profile Send private message
lrhorer



Joined: 04 Mar 2008
Posts: 153

PostPosted: Sat May 23, 2009 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rdian06



Joined: 12 Apr 2008
Posts: 1420

PostPosted: Sun May 24, 2009 8:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 1420

PostPosted: Sun May 24, 2009 8:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Hacks All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.2091s ][ Queries: 17 (0.0280s) ][ GZIP on - Debug on ]