Page 1 of 1

Count total hours of videoseries

Posted: Wed May 24, 2017 1:37 pm
by Alex Ivanovich
I would like to view the total hours-minutes-seconds of videoseries, "VideoBrowse" templates :|

This is the code now

Code: Select all

 <xsl:if test="videoseries!=''">
          <tr> 
            <td class="record_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/video/videoseries/@name"/></td>
            <td class="record_table_fieldvalue"> 
              <a href="VideoList.xsl?VideoSeries={videoseries}@xslparam:doctitle={/data/fld/video/videoseries/@name}: {videoseries}" target="_blank">
                <xsl:value-of select="videoseries"/>
              </a>
			  (##CMD:COUNT:video,episode=@videoseries=<xsl:value-of select="videoseries"/>## Stagioni)
			  (episodi <xsl:value-of select="count(/data/record/contentsdata/disc/side/contents/series)"/> per questa stagione)
			   <xsl:text>; </xsl:text>
			  <xsl:if test="/data/record/contentsdata/disc/side/contents/series!=''">
    ##CMD:COUNT:contents,contents.series=<xsl:value-of select="/data/record/contentsdata/disc/side/contents/series"/>## Episodi in Totale
</xsl:if>
			  
            </td>
          </tr>
          </xsl:if>

Code: Select all

<tr>            
            <td class="record_pane_table_fieldname" nowrap=""><xsl:value-of select="/data/fld/video/length/@name"/></td>
            <td class="record_pane_table_fieldvalue">
              <xsl:if test="length/@hours>0">
                <xsl:value-of select="length/@hours"/><xsl:text> ore </xsl:text>
              </xsl:if>
              <xsl:value-of select="length/@minutes"/><xsl:text> minuti </xsl:text>
              <xsl:if test="length/@seconds>0">
                <xsl:value-of select="length/@seconds"/><xsl:text> secondi </xsl:text>
              </xsl:if>
            </td>
          </tr>

Re: Count total hours of videoseries

Posted: Fri Jun 09, 2017 7:13 pm
by Alex Ivanovich
no one can help me? :|

Re: Count total hours of videoseries

Posted: Wed Jun 21, 2017 7:56 pm
by Alex Ivanovich
It is a shame that this forum has become dead :|

No one answers more ' :|

Re: Count total hours of videoseries

Posted: Wed Jun 28, 2017 4:55 pm
by Alex Ivanovich
also this solved :)

Code: Select all

##CMD:SUM:video,length,episode=@videoseries=<xsl:value-of select="videoseries"/>##
result
39:47:00 :evil:

I can get this :roll:
39 hours :47 hours :00 hours

Re: Count total hours of videoseries

Posted: Mon Sep 11, 2017 11:04 pm
by LotsOCds
Alex Ivanovich wrote: I can get this :roll:
39 hours :47 hours :00 hours
This is not possible.

Re: Count total hours of videoseries

Posted: Mon Sep 11, 2017 11:35 pm
by Alex Ivanovich
OK, thanks ;)