diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-02-05 19:24:16 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-02-05 19:24:16 +0000 |
commit | 385e5a4f1ea982d149281ba19e2acc95d42216dc (patch) | |
tree | ad6945038a339d5b5d86aae77993336db3f52db3 | |
parent | 54723cf491d7e32c1a537dc22d70937631352411 (diff) |
Add code to use the tono flag.
-rwxr-xr-x | frikanalen/bin/scheduler | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frikanalen/bin/scheduler b/frikanalen/bin/scheduler index b54042f..094849c 100755 --- a/frikanalen/bin/scheduler +++ b/frikanalen/bin/scheduler @@ -27,6 +27,7 @@ my $gdfont = "/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.tt # Set to 0 if VLC should not play in full screen mode my $fullscreen = 1; +my $skiptonorecords = 1; use strict; use warnings; @@ -101,6 +102,12 @@ for my $url (@{$listref}) { my $baseurl = "http://www.nuug.no/pub/video/frikanalen"; $event->{'pageurl'} = "$baseurl/fetchvideo.cgi?videoId=$videoId"; + # Should we skip entries with tono records? + if ($skiptonorecords && "true" eq $event->{'HasTonoRecords'}) { + print "info: Skipping event at $start with tono records\n"; + next; + } + my $url = url_exist($event->{'broadcasturl'}) ? $event->{'broadcasturl'} : (url_exist($event->{'ogvurl'}) ? $event->{'ogvurl'} : undef); |