aboutsummaryrefslogtreecommitdiff
path: root/bin/psycamp
diff options
context:
space:
mode:
authorpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>2016-08-10 15:28:59 +0000
committerpsyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet>2016-08-10 15:28:59 +0000
commit99592f27ec169070d21d700b1831775f5fbfbf96 (patch)
tree21ec63fd09ef21c424402e5b2492a124c11e6b2f /bin/psycamp
parente503c6b40fb5480090bdc6f29841e59a5212a3d7 (diff)
downloadperlpsyc-99592f27ec169070d21d700b1831775f5fbfbf96.tar.gz
perlpsyc-99592f27ec169070d21d700b1831775f5fbfbf96.zip
psycamp: considering quiet music
Diffstat (limited to 'bin/psycamp')
-rwxr-xr-xbin/psycamp15
1 files changed, 10 insertions, 5 deletions
diff --git a/bin/psycamp b/bin/psycamp
index 49ffd53..1ecfff2 100755
--- a/bin/psycamp
+++ b/bin/psycamp
@@ -141,6 +141,9 @@ my $screen = 0;
141 use Term::ReadKey qw(GetTerminalSize); 141 use Term::ReadKey qw(GetTerminalSize);
142 ($TWIDTH, $THEIGHT) = GetTerminalSize(); 142 ($TWIDTH, $THEIGHT) = GetTerminalSize();
143 143
144# binmode STDERR, ":encoding(UTF-8)";
145# binmode STDOUT, ":encoding(UTF-8)";
146
144 *name = *File::Find::name; # ugly style works 147 *name = *File::Find::name; # ugly style works
145 my %I; 148 my %I;
146 my $CDUR = 0; 149 my $CDUR = 0;
@@ -264,7 +267,7 @@ X
264 } 267 }
265 if ($opt_x) { 268 if ($opt_x) {
266 # "mpg123 --remain --aggressive -@ $playlist" 269 # "mpg123 --remain --aggressive -@ $playlist"
267 my $exec = $has_mplayer .' -fs -zoom -playlist '. $playlist; 270 my $exec = $has_mplayer .' -quiet -fs -zoom -playlist '. $playlist;
268 print STDERR "\n$exec\n"; 271 print STDERR "\n$exec\n";
269 exec $exec; 272 exec $exec;
270 } 273 }
@@ -629,7 +632,7 @@ X
629 next; 632 next;
630 } 633 }
631 } 634 }
632 if ( /^(J|U|K|E|M|V|Q|X|C|F|L|W|S|R|Y)(\w?)\s*$/ ) { 635 if ( /^(J|U|K|E|M|V|Q|O|X|C|F|L|W|S|R|Y)(\w?)\s*$/ ) {
633 my $r = $2; 636 my $r = $2;
634 if ($r and $r ne $1) { 637 if ($r and $r ne $1) {
635 &say(BOLD, RED, ">> command $1$r not defined", RESET); 638 &say(BOLD, RED, ">> command $1$r not defined", RESET);
@@ -642,7 +645,8 @@ X
642 $1 eq 'E' ? 'EDITABLE' : 645 $1 eq 'E' ? 'EDITABLE' :
643 $1 eq 'M' ? 'REMASTER' : 646 $1 eq 'M' ? 'REMASTER' :
644 $1 eq 'V' ? 'VOLATILE' : 647 $1 eq 'V' ? 'VOLATILE' :
645 $1 eq 'Q' ? 'COOL' : 648 $1 eq 'Q' ? 'QUIET' :
649 $1 eq 'O' ? 'COOL' :
646 $1 eq 'X' ? 'EXPORT' : 650 $1 eq 'X' ? 'EXPORT' :
647 $1 eq 'Y' ? 'EASY' : 651 $1 eq 'Y' ? 'EASY' :
648 $1 eq 'C' ? 'CRITICIZE' : 652 $1 eq 'C' ? 'CRITICIZE' :
@@ -654,7 +658,7 @@ X
654 $f = $ENV{PWD}. '/'. $f unless $f =~ m!^/!; 658 $f = $ENV{PWD}. '/'. $f unless $f =~ m!^/!;
655 my $f2 = $f; 659 my $f2 = $f;
656 # the initial (.*) is a hack to make the regexp match the last occurance in the path string rather than earlier ones 660 # the initial (.*) is a hack to make the regexp match the last occurance in the path string rather than earlier ones
657 unless ($f =~ s:^(.*)/(SHARE|T|COMPLETE|KEEP|EDITABLE|FAVES|WRONG|SECONDARY|REPERTOIRE|NEW|TODO|USE|DEEJAY|REMASTER|CRITICIZE|EASY|INCOMING|incomingDJ|EXPORT|VOLATILE|L8R|CHAOS|DJ|byArtist|byGenre|vol)\d?/:\1/$t/:i) 661 unless ($f =~ s:^(.*)/(SHARE|T|COMPLETE|KEEP|EDITABLE|FAVES|WRONG|SECONDARY|REPERTOIRE|NEW|TODO|USE|DEEJAY|REMASTER|CRITICIZE|EASY|INCOMING|incomingDJ|EXPORT|VOLATILE|L8R|QUIET|COOL|CHAOS|DJ|byArtist|byGenre|vol)\d?/:\1/$t/:i)
658 { 662 {
659 &say(BOLD, RED, ">> not applicable for $f", RESET); 663 &say(BOLD, RED, ">> not applicable for $f", RESET);
660 next; 664 next;
@@ -1484,7 +1488,8 @@ the following uppercase commands:
1484 K = send to KEEP 1488 K = send to KEEP
1485 L = send to L8R 1489 L = send to L8R
1486 M = send to REMASTER 1490 M = send to REMASTER
1487 Q = send to COOL 1491 Q = send to QUIET
1492 O = send to COOL
1488 R = send to REPERTOIRE 1493 R = send to REPERTOIRE
1489 S = send to SECONDARY 1494 S = send to SECONDARY
1490 S = send to USE 1495 S = send to USE