Count total hours of videoseries

Discuss using and your tips/tricks for CATVids
User avatar
Alex Ivanovich
Posts: 267
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Count total hours of videoseries

Postby Alex Ivanovich » Wed May 24, 2017 1:37 pm

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>
Attachments
Count total hours iof videoseries.png
Count total hours iof videoseries
Count total hours iof videoseries.png (137.6 KiB) Viewed 235 times

User avatar
Alex Ivanovich
Posts: 267
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: Count total hours of videoseries

Postby Alex Ivanovich » Fri Jun 09, 2017 7:13 pm

no one can help me? :|

User avatar
Alex Ivanovich
Posts: 267
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: Count total hours of videoseries

Postby Alex Ivanovich » Wed Jun 21, 2017 7:56 pm

It is a shame that this forum has become dead :|

No one answers more ' :|

User avatar
Alex Ivanovich
Posts: 267
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: Count total hours of videoseries

Postby Alex Ivanovich » Wed Jun 28, 2017 4:55 pm

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

User avatar
LotsOCds
Posts: 156
Joined: Thu Aug 20, 2015 4:23 am
Location: California, USA

Re: Count total hours of videoseries

Postby LotsOCds » Mon Sep 11, 2017 11:04 pm

Alex Ivanovich wrote:I can get this :roll:
39 hours :47 hours :00 hours

This is not possible.
Cheers,
Dave

User avatar
Alex Ivanovich
Posts: 267
Joined: Mon Sep 07, 2015 2:24 pm
Location: Russian - Italia

Re: Count total hours of videoseries

Postby Alex Ivanovich » Mon Sep 11, 2017 11:35 pm

OK, thanks ;)


Return to “Using CATVids”

Who is online

Users browsing this forum: No registered users and 1 guest