diff options
author | psyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet> | 2016-08-10 15:28:48 +0000 |
---|---|---|
committer | psyc://loupsycedyglgamf.onion/~lynX <ircs://psyced.org/youbroketheinternet> | 2016-08-10 15:28:48 +0000 |
commit | 1d2891be74a625947b67e0bb2cf9bd0bf7c516d4 (patch) | |
tree | 748fca28355581e87c4330f7d6980bc907a3960d | |
parent | 67167e6fb6cdaa9885eed14489741fe5634dc584 (diff) | |
download | perlpsyc-1d2891be74a625947b67e0bb2cf9bd0bf7c516d4.tar.gz perlpsyc-1d2891be74a625947b67e0bb2cf9bd0bf7c516d4.zip |
-irrelevant changes
-rwxr-xr-x | bin/psycamp | 21 | ||||
-rwxr-xr-x | bin/psyccat | 2 |
2 files changed, 14 insertions, 9 deletions
diff --git a/bin/psycamp b/bin/psycamp index 14c9607..a6ca3ce 100755 --- a/bin/psycamp +++ b/bin/psycamp | |||
@@ -625,7 +625,7 @@ X | |||
625 | next; | 625 | next; |
626 | } | 626 | } |
627 | } | 627 | } |
628 | if ( /^(J|U|K|E|M|V|X|C|F|S|R)(\w?)\s*$/ ) { | 628 | if ( /^(J|U|K|E|M|V|X|C|F|L|W|S|R)(\w?)\s*$/ ) { |
629 | my $r = $2; | 629 | my $r = $2; |
630 | if ($r and $r ne $1) { | 630 | if ($r and $r ne $1) { |
631 | print BOLD, RED, ">> command $1$r not defined\n", RESET; | 631 | print BOLD, RED, ">> command $1$r not defined\n", RESET; |
@@ -641,11 +641,14 @@ X | |||
641 | $1 eq 'X' ? 'EXPORT' : | 641 | $1 eq 'X' ? 'EXPORT' : |
642 | $1 eq 'C' ? 'CRITICIZE' : | 642 | $1 eq 'C' ? 'CRITICIZE' : |
643 | $1 eq 'F' ? 'FAVES' : | 643 | $1 eq 'F' ? 'FAVES' : |
644 | $1 eq 'W' ? 'WRONG' : | ||
645 | $1 eq 'L' ? 'L8R' : | ||
644 | $1 eq 'S' ? 'SECONDARY' : 'REPERTOIRE'; | 646 | $1 eq 'S' ? 'SECONDARY' : 'REPERTOIRE'; |
645 | my $f = $CurrentFile; | 647 | my $f = $CurrentFile; |
646 | $f = $ENV{PWD}. '/'. $f unless $f =~ m!^/!; | 648 | $f = $ENV{PWD}. '/'. $f unless $f =~ m!^/!; |
647 | my $f2 = $f; | 649 | my $f2 = $f; |
648 | unless ($f =~ s:\b(SHARE|T|COMPLETE|KEEP|EDITABLE|FAVES|SECONDARY|REPERTOIRE|NEW|SEEK|TODO|USE|DEEJAY|REMASTER|CRITICIZE|INCOMING|EXPORT|VOLATILE|BOMB|FLOW|SPARE|BAR|LISTEN|byArtist|byGenre)\d?\b:$t:i) | 650 | # the initial (.*) is a hack to make the regexp match the last occurance in the path string rather than earlier ones |
651 | unless ($f =~ s:^(.*)/(SHARE|T|COMPLETE|KEEP|EDITABLE|FAVES|WRONG|SECONDARY|REPERTOIRE|NEW|SEEK|TODO|USE|DEEJAY|REMASTER|CRITICIZE|INCOMING|incomingDJ|EXPORT|VOLATILE|L8R|DJ|byArtist|byGenre|vol)\d?/:\1/$t/:i) | ||
649 | { | 652 | { |
650 | print BOLD, RED, ">> not applicable for $f\n", RESET; | 653 | print BOLD, RED, ">> not applicable for $f\n", RESET; |
651 | next; | 654 | next; |
@@ -657,7 +660,7 @@ X | |||
657 | } | 660 | } |
658 | if ($r) { | 661 | if ($r) { |
659 | $moveLater = $f; | 662 | $moveLater = $f; |
660 | print BOLD, BLUE, ">> scheduled to move to $t\n", RESET; | 663 | print BOLD, BLUE, ">> scheduled to move to $t: $f\n", RESET; |
661 | } else { | 664 | } else { |
662 | &moveFile($f); | 665 | &moveFile($f); |
663 | &next(0); | 666 | &next(0); |
@@ -750,7 +753,7 @@ sub moveFile { | |||
750 | return; | 753 | return; |
751 | } | 754 | } |
752 | my $asd = $CurrentFile .".asd"; | 755 | my $asd = $CurrentFile .".asd"; |
753 | if (-s $asd and not rename ($CurrentFile, $f .".asd")) { | 756 | if (-s $asd and not rename ($asd, $f .".asd")) { |
754 | print BOLD, RED, ">> could not move asd file to $d\n", RESET; | 757 | print BOLD, RED, ">> could not move asd file to $d\n", RESET; |
755 | return; | 758 | return; |
756 | } | 759 | } |
@@ -1077,7 +1080,7 @@ sub ginparse { | |||
1077 | #% $TC eq $1 #? X | 1080 | #% $TC eq $1 #? X |
1078 | $tc == $1 #? !X | 1081 | $tc == $1 #? !X |
1079 | ) { | 1082 | ) { |
1080 | &seek(91) if $opt_j and $tc == 8; | 1083 | &seek(87) if $opt_j and $tc == 8; |
1081 | #% $TC = $1; #? X | 1084 | #% $TC = $1; #? X |
1082 | $tc = $1; #? !X | 1085 | $tc = $1; #? !X |
1083 | $TC = time2str('[%T]', $tc, 0); #? !X | 1086 | $TC = time2str('[%T]', $tc, 0); #? !X |
@@ -1414,13 +1417,15 @@ Whenever media is in a directory like INCOMING, NEW or TODO, it can be | |||
1414 | moved into a different subdirectory on the same hierarchy level by using | 1417 | moved into a different subdirectory on the same hierarchy level by using |
1415 | the following uppercase commands: | 1418 | the following uppercase commands: |
1416 | 1419 | ||
1420 | F = send to FAVES folder | ||
1417 | J = send to DEEJAY folder | 1421 | J = send to DEEJAY folder |
1418 | F = send to FAVES | 1422 | L = send to L8R |
1419 | K = send to KEEP | 1423 | K = send to KEEP |
1420 | X = send to EXPORT | ||
1421 | S = send to SECONDARY | ||
1422 | R = send to REPERTOIRE | 1424 | R = send to REPERTOIRE |
1425 | S = send to SECONDARY | ||
1423 | V = send to VOLATILE | 1426 | V = send to VOLATILE |
1427 | W = send to WRONG | ||
1428 | X = send to EXPORT | ||
1424 | 1429 | ||
1425 | If you prefer to execute the command *after* having finished playing it, | 1430 | If you prefer to execute the command *after* having finished playing it, |
1426 | you can schedule the move for later by doubling the command letter. So | 1431 | you can schedule the move for later by doubling the command letter. So |
diff --git a/bin/psyccat b/bin/psyccat index 8e1a766..c26343f 100755 --- a/bin/psyccat +++ b/bin/psyccat | |||
@@ -29,7 +29,7 @@ X | |||
29 | 29 | ||
30 | my $d = ''; | 30 | my $d = ''; |
31 | # i know there are better ways to do this.. | 31 | # i know there are better ways to do this.. |
32 | $d .= $_ while <>; | 32 | $d .= $_ while <<>>; |
33 | 33 | ||
34 | go($d); | 34 | go($d); |
35 | sleep 4; | 35 | sleep 4; |