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.

107 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. 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
  4. 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
  5. 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
  6. Andhra Pradesh 10th Exam Results would be declared on 2nd week of May 2016 and will be published in ap ssc results 2016.

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

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

    ReplyDelete
  9. 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
  10. 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
  11. Board will soon announce the ssc results at official websites.

    ReplyDelete
  12. 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
  13. 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
  14. People are crazy about Startup but some bullshit Startup ideas also running these days.

    ReplyDelete
  15. 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
  16. 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
  17. 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
  18. 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
  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 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
  20. trp of indian serials this week
    trp rating of serials this week
    trp rating
    ekta kapoor hot
    trp of indian serials
    mouni roy

    ekta kapoor husband
    pollywood box office
    bollywood box office collection
    gippy grewal songs
    vijay new movie

    Great...kudos for you! Much because of you for posting this amazing blog entry.
    t's really necessary to know the health and safety regulations and people need more awareness about what to take, when, and how much. Many diseases are the part of daily lives and body automatically protects us, but there are always certain cases where we are unable to survive without proper medications. Natural herbs such as kratom, cbd oil
    • • The Nun Box Office Collection 7 day
    • • The Nun Box Office Collection 7day
    • • The Nun Box Office Collection Day7
    • • The Nun Box Office Collection Day 7
    • • The Nun Box Office Collection worldwide Day 7
    • • The Nun Collection 7 day
    • The Nun Collection 7day
    The Nun Box Office Collection Day 7 : is an up and coming American gothic otherworldly thriller coordinated by Corin Hardy and composed by Gary Dauberman, The Nun Box Office Collection Day 7 , jeepers creepers 2 , new conjuring movie , nun painting , nun's tale , orders of nuns , the conjuring the nun trailer , the movie the nun , the new conjuring movie , the nun new movie .the nun real story , watch the nun , the nun watch online , The Nun Box Office Collection Day7 , The Nun Box Office Collection 7 day, , The Nun Box Office Collection 7day , The Nun Collection 7 day , The Nun Collection 7day , The Nun 7 day Collection , The Nun 7day Collection , The Nun 7day Collection , Nun Collection Day usa , The Nun Box Office Collection worldwide Day 7 , नन , The Nan Box Office Collection Day 7 , The Nun , The Nun Box Office Collection , chaucer nun's priest's tale , new conjuring movie , the nun streaming, the nun story sequel

    director dada and zero trailer releasing on 15 August

    ReplyDelete
  21. Are you looking for Gazi Tv Live to watch live sports? Well you are in the right place, in this article you will be found your desired Gazi tv live streaming link.
    https://www.gtvlivetv.com/

    ReplyDelete
  22. Get Packers and Movers Jaipur List of Top Reliable, 100% Affordable, Verified and Secured Service Provider. Get Free ###Packers and Movers Jaipur Price Quotation instantly and Save Cost and Time. Packers and Movers Jaipur ✔✔✔Reviews and Compare Charges for household Shifting, Home/Office Relocation, ***Car Transportation, Pet Relocation, Bike SHifting @ Packers And Movers Jaipur

    ReplyDelete
  23. brave
    http://pmanonline.net/
    brave browser
    brave meaning
    brave meaning in hindi
    bravest community in the world
    brave new world
    brave girls
    brave new world netflix
    brave browser download
    brave and beautiful
    brave antonyms

    ReplyDelete
  24. thank you for the information provided, we are waiting for the next info

    ReplyDelete
  25. I think this is an informative post and very useful and knowledgeable too. Besides, this was really an interesting topic to talk about anyway. ~ Supplier Jual Furniture Kantor ~

    ReplyDelete
  26. Gambling researcher Dr Alex Russell from Central Queensland University says the American data is “pretty similar” to what is known about playing in Australia. When it comes to placing a bet, US analysis data is mirrored in Australia. It’s potential California’s struggle may 카지노 produce a costly stalemate this year. Industry players are prepared to spend closely to defeat their opponents, and voters usually react to quantity of} initiatives on the identical matter by voting for none of them. That would shift the conflict to the next election cycle — when competitors might be be} even more fierce. Giden mentioned the ensuing market has seen “absolutely crazy ranges of expansion” thanks partially to a “user-friendly reputation” and the chance for states to pad their budgets.

    ReplyDelete