Lyrics Manager
Amarok 1.x Scripts
Score 50%
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:

11 years ago

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

mayssamj

7 years ago

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?

Report

BrutuZ

9 years ago

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 =)

Report

C

msan

8 years ago

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

Report

daneel971

9 years ago

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".

Report

C

msan

9 years ago

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.

Report

daneel971

9 years ago

Many thanks! It works perfectly. :)

Report

l3u

10 years ago

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 :-)

Report

C

msan

10 years ago

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!

Report

mattepiu

10 years ago

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 < >

Report

C

msan

10 years ago

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

Report

MMax

10 years ago

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

Report

C

msan

10 years ago

Please, check a new release up!

Report

C

msan

11 years ago

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.

Report

C

msan

11 years ago

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.

Report

LuXiano

11 years ago

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 :/

Report

C

msan

11 years ago

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

Report

digitalramble

11 years ago

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...

Report

C

msan

11 years ago

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.

Report

trawler

11 years ago

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

Report

trawler

11 years ago

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

Report

caamg

11 years ago

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

Report

C

msan

11 years ago

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

Report

caamg

11 years ago

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

Report

bleearg

11 years ago

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

Report

C

msan

11 years ago

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.

Report

11 years ago

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

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.2.14
updated Dec 02 2009
added Feb 23 2006
downloads today
0
page views today 0