Lyrics Manager

Amarok 1.x Scripts

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
About:

This script is intended to extend amaroK lyrics operations. The main actions are:
* Edit lyrics with external editor
* Automatic text cleanup
* Export lyrics to file
* Import lyrics from file
* Mass import and export
* Erase and fill up lyrics
You can select menu items and features that you need. Also you are required to setup editor and storage directory depending on your previous choice. All these parameters are saved in config file and loaded silently at script startup.
Script will take care of HTML break tags while processing lyrics text, so you can edit and store plain text.
Mass operations could be used to backup and restore cached lyrics. Fill up feature prevents automatic lyrics fetching.
For more information see description on the homepage.


Dependencies:

amaroK >= 1.4.3
PERL >= 5.8
KDialog >= 1.0 (optional: for GUI configuration)

Tested on: amarok 1.4.10; perl 5.8.8; kdebase 3.5.9.
Last changelog:

version 0.2.14
* fix: bug in collection search algorithm for device paths containing special chars

version 0.2.13
* update: improved flexibility of collection search algorithm


Ratings & Comments

53 Comments

mayssamj

how can i configure this to work with a http proxy server as i'm behind a firewall? i tried running amarok with http_proxy and HTTP_PROXY environment variables set. i also set the streaming proxy setting in amarok. no luck yet .. any help?

BrutuZ

Could the support for Lyrics sub-dirs be implemented, so i can have a sub-directory in my music collection just for the lyrics to keep things organized? Sent you a message with more details just in case. Very nice script tough =)

msan

Finally I've added support for this feature. :)

daneel971

This is one of the scripts that I always install with amarok. :) A little request though: it could be possible to name the exported lyric file like the corresponding audio file instead of using its tags? For instance, if I have "01-solsbury-hill.flac", I'd like to have "01-solsbury-hill.txt" instead of "01 - Peter Gabriel - Solsbury Hill.txt".

msan

Hi! I'm glad, that you like my script. I've implemented requested feature. Check out a new release (new %f and %F placeholders). Tell me, if something goes wrong.

daneel971

Many thanks! It works perfectly. :)

l3u

Hi :-) The script messes up special characters like German Umlauts when the system does not use Unicode ... lyrics added by the external editor feature show two not printable characters instead of the actual special character when the text is viewed by amaroK's metadata dialog. Anyway -- a cool script :-)

msan

Unfortunately, I don't know how to solve this. I think, this is by design, by the amaroK's method used to communicate with scripts (via DCOP). You can try to do following, when song is playing: # dcop amarok player lyrics > lyrics.txt and then open lyrics.txt with UTF viewer. All special chars are missed. :( I need to setup dcop to output UTF text somehow. If somebody know how to do it, please, write here!

mattepiu

I had this issue and I found that if I remove the first line (an xml tag) from my lyrics files (.txt) everything returned working fine. Just do Edit lyric -> then remove first line if enclosed in < >

msan

Thank you for report! I've released a new version fixing this.

MMax

Can you add an option to export to the same folder where mp3 file is located? thanks!

msan

Please, check a new release up!

msan

Dear users! After changes of amaroK behaviour on db level in this fall, some of you have reported about problems, that my script can't find requested file in collection. I had to switch to new db schema, and script worked fine for my environment after that. But I still receive bug reports about it. I wondered and tried to study deeply, checked script on MySQL, played with settings and so on... but script every time works fine for me. I can't reproduce it and it's hard to understand how bug could be described to be reproduced. First step towards is in the new release (v0.2.6). I've implemented internal debug switch in the script that could help to understand the nature of problem. To activate debug mode you need to edit installed script ~/.kde/share/apps/amarok/scripts/lyrics-manager/lyrics-manager.pl at the 12th line replacing it by "$DEBUG = 1;". Then you can run (rerun) script, do some action, and you could see messages about SQL queries and answers in the log. You can send this log to me by email with information about versions of your software (as it written in the script's docs in About window) and list of your actions. Then may be I'll able to understand what's going on. Also, when I tested new release, I noticed at the moment, that internal state of amaroK db is wrong. I can't reproduce this to send a bug to amaroK team, but I think it concerned with mount/unmount, fstab or smth, because the 'devices' table had new state, but the 'tags' table contained old device ids. So I recommend you to backup old db, delete and regenerate it for clean check. My script uses this tables and can't work if they are wrong.

msan

I've just improved collection search algorithm. Thanks to bleearg for his reports and help! I hope that the script will work for many environments now. If not - let me know.

LuXiano

I have the same problem described above :( Some of my files do work but there are some in which i get the "not in collection" error. Ive added the DEBUG=1 but i dont know where to find the log file in order to help you find out what's wrong :/

msan

There is the log window for each script: Tools->Script Manager, popup on the script: Show Output Log.

digitalramble

I must be missing something very obvious here, but I can't see what. Running amarok, clicking on Collections from the left sidebar. This gives me a list of the albums it has in my collections. I click on one of them so that the songs in that album appear in the panel on the right hand side. At this point I right click on any or all of the files (it doesn't matter) and choose the Lyrics Manager from the menu. But it doesn't matter what option I choose. For any of them, I get a message: This music file is not in your Collection! I checked through all the comments here, old and new but didn't spot anything that might be relevant. I also can't find any documentation (no, the code is NOT documentation) for this, so I'm at a loss? I've been experimenting, but I'd love any tips at this point...

msan

Thanks for bug report. I would like to know, which version of the player do you use? I'm not sure, but if it's fresh enough, the in-collection detection algorithm could become old. The thing that this algorithm keeps is proper behaviour on previous releases of amaroK, where there was no saved lyrics for out-of-collection files (so script can't save or load any lyrics for them). I'm going to update my amaroK on the weekend and check this up.

trawler

Same here - I'm using Amarok 1.4.3, using KDE 3.5.5 on Ubuntu edgy (6.10).

trawler

P.S. - updating the script didn't help...

caamg

I've the same problem with amarok 1.4.3 (the debian sid's version)

msan

Same here. I'll try to fix it soon.

caamg

Thanks for your bug-fix and update It works fine now:)

bleearg

I'm in the same boat. I've got Amarok 1.4.3 using MySQL for the Collection database on Ubuntu Dapper.

msan

It's very strange, especially that we have same version numbers. I've sent you a letter, please, answer it. It will help to understand the nature of the problem.

Pling
0 Affiliates
Details
license
version 0.2.14
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other Amarok 1.x Scripts:

Gnome Play Video in Totem
mwheatland
last update date: 19 years ago

Score 5.0

editLyrics-gnome
ZeeD
last update date: 19 years ago

Score 5.0

amarok Alarm
aroth
last update date: 16 years ago

Score 5.0

amaroK Web Collection V xmms
pti-jean
last update date: 16 years ago

Score 5.0

SongLogger
lucatnt
last update date: 17 years ago

Score 5.0

amaroK Web Collection
pti-jean
last update date: 16 years ago

Score 5.0



System Tags