diff options
author | Jarle Bjørgeengen <jarle@bjorgeengen.net> | 2010-02-28 11:38:26 +0000 |
---|---|---|
committer | Jarle Bjørgeengen <jarle@bjorgeengen.net> | 2010-02-28 11:38:26 +0000 |
commit | fd886d3bd102cfb94b739b731d7f41ff4681ec8c (patch) | |
tree | 8b8a3690fc64c426604c5b86c1d359a977952bfb | |
parent | 330e914f57a987434f42d50d71f7b491ca282eb5 (diff) |
Play sendeplan instead of loop the movie again if finished before timeslot
-rwxr-xr-x | frikanalen/bin/scheduler | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frikanalen/bin/scheduler b/frikanalen/bin/scheduler index b6965e7..b35f9b2 100755 --- a/frikanalen/bin/scheduler +++ b/frikanalen/bin/scheduler @@ -96,6 +96,14 @@ sub plwrite { kill SIGHUP => $ezpid; kill SIGUSR1 => $ezpid; } + sleep 5; + open PL, ">$ezplaylist" or die "Cannot open $ezplaylist for write :$!"; + print PL "fk-program.ogv\n"; + close PL; + if ( $ezpid ) { + kill SIGHUP => $ezpid; # Rearead playlist with pause screen, so that next loop + # shows that and not the program again + } } sub ezstream_start { |