summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-09-13 11:57:48 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-09-13 11:57:48 +0000
commitb88aa31eed9020248a3c05c8f8867393a98b853a (patch)
tree690eca768c546a46696cd65ae1391733aab3f120
parent45b22ee66604fdc134116038c6f5384b6cb84479 (diff)
Vis fram tono-status for hvert enkelt innslag.
-rwxr-xr-xfrikanalen/cgi-bin/fetchvideo.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/frikanalen/cgi-bin/fetchvideo.cgi b/frikanalen/cgi-bin/fetchvideo.cgi
index 5f353fd..1992e6a 100755
--- a/frikanalen/cgi-bin/fetchvideo.cgi
+++ b/frikanalen/cgi-bin/fetchvideo.cgi
@@ -41,6 +41,7 @@ my $minutes = int(($length%3600)/60);
my $hours = int($length/3600);
my $date = $ref->{$id}->{UploadDate};
$date =~ s/T.+$//;
+my $tonoflag = $ref->{$id}->{HasTonoRecords};
my $ogvurl = $ref->{$id}->{ogvUri};
my $wmvurl = $ref->{$id}->{VideoUri};
my $playlisturl = $nuug_frikanalen_url . url(-relative=>1) . "?playlist=$videoid.m3u" ;
@@ -107,6 +108,7 @@ if ($playlist) {
<p><table cellpadding=5>
<tr><td>Lengde:</td><td> $lengde </td></tr>
<tr><td>Dato:</td><td> $date </td></tr>
+ <tr><td>Innhold krever tono-betaling:</td><td> $tonoflag </td></tr>
</table>
<p>Dersom du ikke ser noe video p&aring; denne siden, har du en nettleser uten fungerende java-st&oslash;tte. F&oslash;lgende lenker kan benyttes dersom dette er tilfelle, eller du &oslash;nsker mere kontroll p&aring; s&oslash;king (playlist url) eller laste ned hele filen (Ogg Theora) . Vi har ogs&aring; lagt inn direktelink til Windows Media url p&aring; frikanalen sin side.
<p>Video URLs: