]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
(Cirssi) Releasing Cirssi v2.0.1 with search function for audacious.
authorDani Soufi <redacted>
Fri, 2 Apr 2010 17:22:10 +0000 (19:22 +0200)
committerbw1 <redacted>
Sun, 20 Jan 2019 10:57:22 +0000 (11:57 +0100)
scripts/Cirssi.pl

index 483aab3c1abd5571d94593cf42e5290ffa7b0688..eb95cceea7ae992251609fc20d7d533d4a08fb7a 100644 (file)
@@ -18,7 +18,8 @@ use vars qw($VERSION %IRSSI);
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 #
 # Change Log:
-# v2.0.1b:
+# v2.0.1:
+#       - Adding searching functionality to Audacious.
 #       - Cleaning some unusefull code.
 #       - Show an error when a command is executed in a wrong window, instead of exiting silently.
 # v2.0.0:
@@ -61,7 +62,7 @@ use vars qw($VERSION %IRSSI);
 use Irssi;
 use IPC::Open3;
 
-$VERSION = '2.0.1b';
+$VERSION = '2.0.1';
 %IRSSI = (
    authors      =>   "Dani Soufi (compengi)",
    contact      =>   "IRC: Freenode network, #ubuntu-lb",
@@ -368,6 +369,7 @@ sub cmd_aud_playlist {
     my $display = `audtool2 --playlist-display`;
     chomp($display);
 
+    Irssi::print("Playlist:");
     Irssi::print("$display");
    }
    else {
@@ -388,14 +390,15 @@ sub cmd_aud_search {
       push @matches, $_ if /$data/i;
      }
      if (@matches) {
-      $witem->print("Search Results:");
+      $witem->print("Found match(s) to '$data'.");
+      $witem->print("Printing the search result:");
       for (@matches) {
-       $_ =~ s/^\s+|\s+$//g;
-       $witem->print("$_");
+       $witem->print("Track$_");
       }
+      $witem->print("use /audacious jump <Track> to listen to the track you want.");
      }
      else {
-       $witem->print("Couldn't find any match(s) for your keyword '$data'.");
+       $witem->print("Couldn't find any match(s) for keyword '$data'.");
      }
     }
     else {
git clone https://git.99rst.org/PROJECT