[BACK]Return to playmp3s.pl CVS log [TXT][DIR] Up to [local] / mp3 / daemon

Diff for /mp3/daemon/playmp3s.pl between version 1.8 and 1.9

version 1.8, 2011/06/14 16:53:27 version 1.9, 2011/06/14 17:22:13
Line 1 
Line 1 
 #!/usr/bin/perl  #!/usr/bin/perl
 # $RedRiver: playmp3s.pl,v 1.7 2010/10/28 19:21:29 andrew Exp $  # $AFresh1$
 ########################################################################  ########################################################################
 # PlayMP3.pl *** play's MP3s off a playlist using mp3play  # PlayMP3.pl *** play's MP3s off a playlist using mp3play
 #  #
Line 29 
Line 29 
   
 my @playlist;  my @playlist;
   
   my $playing = '';
 for ( ;; ) {  for ( ;; ) {
   
     #   while(1) {      #   while(1) {
     my $save_playlist;      my $save_playlist;
   
       if ( $cfgs{pausedfile} && -e $cfgs{pausedfile} ) {
           Print_PlayLog("Paused\n");
           DisplayPlaying( $cfgs{currenthtml}, "Paused" )
               unless $playing eq 'paused';
           $playing = 'paused';
           sleep 10;
           next;
       }
   
     my ($last_mod) = ( stat( $cfgs{list} ) )[9];      my ($last_mod) = ( stat( $cfgs{list} ) )[9];
     if ( $playlist_last_mod != $last_mod ) {      if ( $playlist_last_mod != $last_mod ) {
         @playlist          = ();          @playlist          = ();
Line 68 
Line 78 
   
     Print_PlayLog("displaying file that is playing . . . ");      Print_PlayLog("displaying file that is playing . . . ");
     DisplayPlaying( $cfgs{currenthtml}, $filename );      DisplayPlaying( $cfgs{currenthtml}, $filename );
       $playing = $filename;
     Print_PlayLog("done\n");      Print_PlayLog("done\n");
   
     Print_PlayLog("Adding Last. . .");      Print_PlayLog("Adding Last. . .");
Line 113 
Line 124 
   
     Print_PlayLog("Displaying Nothing . . .");      Print_PlayLog("Displaying Nothing . . .");
     DisplayPlaying( $cfgs{currenthtml}, "Nothing" );      DisplayPlaying( $cfgs{currenthtml}, "Nothing" );
       $playing = 'nothing';
     Print_PlayLog("done\n");      Print_PlayLog("done\n");
   
     #@playlist = ();      #@playlist = ();

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>