Fandom

Music Player Daemon Community Wiki

Hack:mlyric

525pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

  • 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

Note by author:

This script is a bit old and does not use the API that leoslyrics now provide. If anyone's up to the task to update the script please feel free to do so. I might update it when/if I've got time for it some day, but don't count on that.

Also on Fandom

Random Wiki