Recent changes Random page
GAMING
Technology
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Hack:mlyric

From Music Player Daemon Community Wiki

Jump to: navigation, search
  • Author: bumby
  • License: BSD
  • Current version: Spanking
  • Downloads: mlyric.pl (homepage)
  • Description: A little perl script which fetches lyrics of currently playing song from leoslyrics.com, adds it to id3tag and displays on stdout.

Hint:

#!/bin/bash
cur=`mpc|head -n 2|tail -n 1|sed -e 's/.*#\([0-9]*\).*/\1/'`
prev=$cur
while [ 1 ];do
   sleep 1;
   cur=`mpc|head -n 2|tail -n 1|sed -e 's/.*#\([0-9]*\).*/\1/'`
   if [ $cur != $prev ];then
      clear
      mlyric.pl
      prev=$cur
   fi
done
Rate this article:
Share this article: