Saturday, January 16, 2010

A lyric script for amarok 1.4 written in Python

I switched to amarok as my default music player after I came to know about the concept of amarok scripts - simple scripts interacting with amarok via DCOP and adding various functionalities to the player. There's a plethora of those scripts on the web: the best place to look for them is kde-apps.org.

However, my enthusiasm about amarok took a heavy blow pretty early - the version of amarok included in the distro I'm using (Ubuntu 9.10), turned out to be painfully sluggish and unresponsive. Unwilling to give up on the brilliant player on account of this single flaw, I decided to go for a previous version: I used an older version of amarok on either Ubuntu 8.10 or Debian Lenny for a very brief period and it was not at all sluggish back then. So I had to go through the usual chores: adding Jaunty and Intrepid repos in my sources.lst, updating apt (at this point synaptic showed a nasty error message complaining about its cache-limit not being big enough. A little googling later, I was able to increase
the cache-limit by editing /etc/apt/apt.conf.d/70debconf), and force-versioning the packages in Synaptic. And sure enough, the Intrepid version ran without any fuss.

After the new (old) amarok scanned and indexed my music collection, I promptly installed a couple of amarok scripts: Gnome-Multimedia-Keys, Amarok notify-osd(This one replaces the rather crude amarok osd's with the new default notification system of ubuntu). At this point I noticed that amarok has a separate category of scripts named 'lyrics'. All of them seem to be there for basically performing one simple job: fetch the lyrics of the song currently playing in amarok and show it under the 'Lyrics' tab in the left pane of the amarok window. But there was just one small problem: none of the included lyric scripts could display the lyrics of any song I'd listen to.

This really stumped me because whenever I google for the lyrics of any song, I generally find it in the first search result Google returns. I even found a lyric script which uses a google search, but all it did was simply render the google search results page onto the lyrics pane instead of showing the actual lyrics. Therefore I decided to write a lyric script myself. This script finds the lyrics of a song using the awesome python library for google search by Peteris Krumins. The first version of the script surely needs more polishing but at least does its job pretty nicely for me.


The script can be downloaded from here.

100 comments:

  1. Thanks for the sharing really usefull. I would like to bookmark this site.

    ReplyDelete
  2. Some interesting factoids on Allen; he wrote fendi outlet almost all his own scripts for his movies, which are primarily based in NY, recorded three comedy albums and has done nine plays, he enjoys playing clarinet rolex submariner replica in NY on Monday nights, and can be seen at any given Knicks games, since he is a season ticket holder and gucci replica never watches his films on screen once they've been released. Neurotic much?

    Another fun fact, in 1995, he was chosen by Empire replica belts magazine as one of the 100 Sexiest Stars in film history (he was #89). He wasnever an award attender, nor was he ever known to flash his money around. He has won or has been nominated for 136 awards. Not prada replica too shabby!

    ReplyDelete
  3. Here is the good news for those people having problem or tired from the older versions that new update is available with innovative view and features. Students has to write some important stuff for their successful completion of degree so our cheap essay writer http://ineedessayhelp.com/ are here for providing you best aid not only in your educational era but also in the career.

    ReplyDelete
  4. Some people considered that discounts are available on those products which are lower in quality but this is totally wrong as we are providing excellent writing services which are admired worldwide due to meeting the deadlines and unique content at discounted price. So visit thesis writing UK website to hire the professional writer in your budget.

    ReplyDelete
  5. This alignment selections acute so that you artlessly can accord with copies through the use of the moment in time it’s accepting acquiesce go. At louis vuitton apish louis vuitton replica moment in time Louis Vuitton accommodate you with absolutely continued generally the accomplished articles and options acquire the adeptness to replica shoes assurance ring, operating watches, shoes collectively with added items. a bulk of individuals are possibly nonetheless captivated application the abundant ample array with commendations to their best top superior lotions even already the huge majority acceptance for that consistently that signifies expensive. along to any adventure for girls provides accepting mentioned that humans could accept types alone gucci replica glut pertinent to articles and options and options from which to select. Fundamentally this alignment is acutely advancing careers all apropos the best superior and believability at the rear of hermes replica methods to acquire the adeptness to assured that this array of software accommodate the the optimal expectations a lot of about absorbed with arresting and along artistry. along they should amuse acquiesce rrndividuals are acquainted the intentions can be an amazing action abounding acclimated from advancement breitling replica which accept been inundated on the exchange for the market.





    ReplyDelete
  6. ralph lauren shirts, http://www.poloralphlaurenshirts.us.com/
    oakley, http://www.occhialioakleyoutlets.it/
    ray ban, http://www.occhiali-rayban.it/
    oakley outlet, http://www.oakleyoutlet.in.net/
    oakley sunglasses, http://www.oakleysunglasses-outlet.us.com/
    kobe bryant shoes, http://www.kobebryantshoes.in.net/
    pandora jewelry, http://www.pandorajewelryoutlet.us.com/
    cheap nike shoes, http://www.cheap-nikeshoes.cc/
    hollister uk, http://www.hollistershirts.co.uk/
    hermes belt, http://www.hermesbelts.us/
    cheap wedding dresses, http://www.cheap-weddingdresses.net/
    coach outlet canada, http://www.coachoutletcanada.com.co/
    cheap jordans, http://www.cheapjordanshoes.in.net/
    north face outlet, http://www.thenorthface.me/
    oakley sunglasses, http://www.oakleysunglassesdiscount.us.com/
    louis vuitton handbags, http://www.louisvuittonhandbags.org.uk/
    soccer jerseys, http://www.soccerjerseys.us.com/
    cheap nfl jerseys, http://www.cheapnfljerseys.org/
    juicy couture outlet, http://www.juicycoutureoutlet.net/
    the north face clearance, http://www.thenorthfaceclearances.us.com/
    chanel handbags, http://www.chanelhandbagsoutlet.in.net/
    yoga pants, http://www.yogapants.us.com/
    futbol baratas, http://www.futbol-baratas.com/
    prada handbags, http://www.pradahandbagsoutlet.co.uk/
    air jordan 13, http://www.airjordan13s.com/
    cai2015107

    ReplyDelete
  7. Andhra Pradesh 10th Exam Results would be declared on 2nd week of May 2016 and will be published in ap ssc results 2016.

    ReplyDelete
  8. Thank for sharing this post for Upcoming event Happy Eid al-Adha visit at
    Eid al-Adha

    ReplyDelete
  9. Thank for sharing this post for Upcoming event Happy Eid al-Adha visit at
    Eid al-Adha

    ReplyDelete
  10. The Old Year Has Gone, Happy New Year, Forget All The Sorrows And Any Form Of Unpleasantness Of The Past Year; Expectantly Focus On The New Year Because There Are Great Things In Store For You.

    Happy New Year 2017 Wishes to Boyfriend

    ReplyDelete
  11. The Happy Halloween Day is coming soon On October 31st, 2016 Download Halloween Day Images 2016. Celebrate with us with having Halloween Day Images 2016 From Here.

    ReplyDelete
  12. The Gujarat board will publish the 10th results 2017 soon.

    ReplyDelete
  13. Board will soon announce the ssc results at official websites.

    ReplyDelete
  14. Thanks to share this article. Please share also some tips to write a article on sports.
    Download CBSE 12th board exam 2017 result SSC JE Admit card 2017
    Rajasthan Police Bharti 2017 recruitment
    CBSE 10th Board result 2017
    cbse 12th board results 2017

    ReplyDelete
  15. Such pay day advances can be worthwhile to individuals acquiring a customary compensation, particularly on the off chance that they have no cash to address the issues of a problem that is begging to be addressed. payday loans

    ReplyDelete
  16. People are crazy about Startup but some bullshit Startup ideas also running these days.

    ReplyDelete
  17. Thank you for sharing your info. I truly appreciate your efforts and I will be waiting for your next post thank you once again. CHSL Exam Pattern 2018
    SSC CHSL 2018 Syllabus
    SSC CHSL 2018 Exam Syllabus
    SSC CHSL Pattern and Syllabus
    CHSL 2018 Exam Pattern

    ReplyDelete
  18. a pride for me to be able to discuss on a quality website because I just learned to make an article on
    cara menggugurkan kandungan

    ReplyDelete
  19. You guys are really doing great work. I am sure you're doing research to provide such kind of stuff to us. Feeling proud that people like you still exist in the world.
    ipl live score
    free ipl score
    ipl live stream
    ipl final 2018
    ipl live streaming
    ipl final score
    ipl live stream 2018
    ipl live score 2018
    ipl 2018 Schedule match
    watch ipl online live

    ReplyDelete
  20. I was looking for some solution on google and then I cam across your website and got addicted. Such a nice way of website management, colours, way of writing and layout is attractive.
    ipl final score
    ipl live stream 2018
    ipl live score 2018
    ipl 2018 Schedule match
    watch ipl online live
    ipl live score
    free ipl score
    ipl live stream
    ipl final 2018
    ipl live streaming

    ReplyDelete
  21. You guys are really doing great work. I am sure you're doing research to provide such kind of stuff to us. Feeling proud that people like you still exist in the world.
    ipl live score
    free ipl score
    ipl final live streaming
    ipl final 2018
    ipl live streaming
    ipl final score
    ipl live stream 2018
    ipl live score 2018
    ipl Schedule 2018
    watch ipl online live

    ReplyDelete
  22. You guys are really doing great work. I am sure you're doing research to provide such
    kind of stuff to us. Feeling proud that people like you still exist in the world.
    ipl live score
    free ipl score
    ipl final live streaming
    ipl final 2018
    ipl live streaming
    ipl final score
    ipl live stream 2018
    ipl live score 2018
    ipl 2018 Schedule match
    watch ipl online live

    ReplyDelete