Announcement

Collapse
No announcement yet.

Thumgen TV Series Templlate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Thumgen TV Series Templlate

    This post is for those that wish to generate thumbnails semi-automatically for display in their media library, usually on a media player.

    I have promised to put this up for a while and finally here it is.

    If you have a look at the JPG, it will show you what information is obtained, displayed and written to the thumbnail pretty well automatically.

    Thumbgen can be obtained FREE at http://thumbgen.org/ and this template was done with Version 1.2.7.4

    There are 2 zip files also attached.
    The gallery zip must be unzipped to C:\Program Files (X86)\Thumbgen\Gallery. I have done this so that the image repository is central rather than remaining with each template.

    The template zip template file must be unpacked to C:\Program Files (X86)\Thumbgen\Templates\_TV Series

    Enjoy
    GregiBoy.....
    Attached Files
    "Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790

    #2
    Pehaps a mod may like to make this a sticky so it doesn't get lost.
    "Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790

    Comment


      #3
      Hi Greg
      Done...
      CBR929
      Even if it's a little thing, do something for those who have need of help, something for which you get no pay but the privilege of doing it.


      Setting Up ImgBurn and DVDFab to work together

      Tips for Posting DVDFab Logs in the Forum

      Comment


        #4
        Thanks Mate....
        "Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790

        Comment


          #5
          Originally posted by GregiBoy View Post
          Thanks Mate....
          No problem
          CBR929
          Even if it's a little thing, do something for those who have need of help, something for which you get no pay but the privilege of doing it.


          Setting Up ImgBurn and DVDFab to work together

          Tips for Posting DVDFab Logs in the Forum

          Comment


            #6
            Revised XSLT file to account for when Season and Episode numbers are blank cannot upload, invalid file... Have posted code instead.

            <?xml version="1.0" encoding="UTF-8"?>
            <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
            <xslutput method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
            <xsl:template match="@*|node()">
            <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
            </xsl:template>
            <!-- match the TextElement - the template must have the Text Element "SeasonEpisode" -->
            <xsl:template match="TextElement[@Name='SeasonEpisode']">
            <xsl:variable name="Season" select="//tokens/token[@name='%SEASON%']"/>
            <xsl:variable name="TxtSeason" select="concat('S',format-number($Season,'00'))"/>
            <xsl:variable name="Episode" select="//tokens/token[@name='%EPISODE%']"/>
            <xsl:variable name="TxtEpisode" select="concat('E',format-number($Episode,'00'))"/>
            <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
            <!-- replace the Text attribute with the desired formatted text -->
            <xsl:if test="($Season != '' )">
            <xsl:attribute name="Text"><xsl:value-of select="concat($TxtSeason,$TxtEpisode)"/></xsl:attribute>
            </xsl:if>
            <xsl:if test="($Season = '' )">
            <xsl:attribute name="Text"><xsl:value-of select="$TxtEpisode"/></xsl:attribute>
            </xsl:if>
            <xsl:if test="($Season = '' and $Episode = '')">
            <xsl:attribute name="Text"><xsl:value-of select="None"/></xsl:attribute>
            </xsl:if>
            </xsl:copy>
            </xsl:template>
            </xsl:stylesheet>
            "Beer is living proof that God loves us and wants us to be happy." - Benjamin Franklin 1706-1790

            Comment

            Working...
            X