Moodbar Generator

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

6
Become a Fan
8.0

Description:
Amarok2 script.
Automatically generates moodbar files for current playlist, songs added to playlist, currently playing song.
thanks Boris Churzin(http://kde-apps.org/usermanager/search.php?username=devenv) for idea, also thanks to Nikhil Marathe for help.
Need this thing: http://amarok.kde.org/wiki/Moodbar.
And, please, check if moodbar is on (check box "Show Moodbar in Progress slider")
Last changelog:

Now it can't slow down amarok, but need testing because of many changes.
Added russian translation, but it is not work (don't know why)


Ratings & Comments

57 Comments

msx

Works smooth on Amarok 2.7, KDE 4.10.2-preview (Chakra). Thank you!

baby-luck

Hi, After generating a mood file, what code will refresh the Playlist so that the moodbar is shown? Moodbars are only read when starting Amarok (2.5.0). Neither "Update Collection" nor "Full Rescan" work.

ZLv

Maybe it is some feature of moodbar, but not moodbar generator script?

bitcrazy

Since Amarok 2.5 your script doesn't work anymore. Actually I've Amarok 2.6 running under KDE 4.8.0. The script throws an error about element "Path.is.empty" or something on startup and no mood files are generated.

bitcrazy

Just removed the defunct function path.isEmpty. Now it is working again.

ZLv

Sory for late answer, but there is no such function call as path.isEmpty in last script version.

bitcrazy

You're right, but you should increase the version number correctly then. Both versions show 0.5 in the README and the script.spec. Therefore I guessed having the latest version already.

ZLv

done. Thank you

ZLv

it's strange. Is there any way, that moodbar command doesn't work? Try for example: moodbar "03 - An Cat Dubh.flac" -o ".03 - An Cat Dubh.mood" on this song: http://disk.tom.ru/mvlm7dl You can try to enter debug mode of amarok by: amarok --debug maybe it'll help

Ninja1980

Nope won't work on the command line; error: "Could not create element of type audioconvert, please install it." I went to the Amarok Wiki to look at which packages are needed for moodbar generation... all the packages in openSuse 12.1 64-bit have been changed from what it recommends. For example, I should have package; gst-plugins-flac installed for flac files... this package does not exist for opensuse 12.1 Do you know of an alternate? I believe this to be a package problem with opensuse 12.1 and your script. So you may have no idea, but I appreciate any help.

ZLv

Have you tried moodbar with ogg or mp3?

Ninja1980

.flac .mp3 .ogg All those files types do not work, same error.

ZLv

I've tried it in opensuse, I have moodfiles generated, so this is not problem of the distribution

Ninja1980

I've made sure my music directory is writeable. The error I am receiving now when running the script via the Amarok Script Console is; TypeError: Result of expression 'Amarok.Window.SettingsMenu.moodbarSettings' [undefined] is not an object.

ZLv

Happy new year! Ok, I get this error with console too. But why are you running script through amarok script console? Maybe it is better to simply enable script in settings->scripts and start playing songs, then moodbar generate mood files itself.

Ninja1980

Happy New Year! :) I was running it in the console to troubleshoot, because moodbar files were still not being generated and was not receiving an error in Amarok anymore.

ZLv

Thank you again. Ok, now I made checking is url empty. Can you test this script again, please?

Ninja1980

Same error.

ZLv

strange, I have amarok 2.4-git and can't reproduce error after this update and even tried on 2.4.3, but it's work.

Ninja1980

I uninstalled the script, reinstalled via the link on the page here, and pasted the folder into the Amarok Scripts folder. I no longer get the error, however, mood files are not being generated. They should be placed into the same folder as the audio file correct?

ZLv

yes, in the same folder, test if this folder writable

Ninja1980

I get an error when trying to generate moodbars. I previously used the script on the command line via a sh script. But since upgrading to opensuse 12.1 that script no longer works. Amarok version: 2.4.3 KDE version: 4.7.2 OpenSuse 12.1 64-bit Error: Script error reported by: Moodbar generator Qurl:Qurl() could not find a function match; Candidates are: Qurl() Qurl (string url) Qurl (string url, parsingMode mode) Qurl (Qurl copy)

ZLv

anyway thank you for the bagreport

bitcrazy

I've Amarok build from GIT and your script installed. Moodfiles are generated, but don't result in colored timeline.

bitcrazy

Showing up moodbar was deactivated.

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

More Amarok 2.x Scripts from ZLv:

product
Current Track
ZLv
last update date: 14 years ago

Score 6.1

Other Amarok 2.x Scripts:

product
raya
raya1234
last update date: 15 years ago

Score 5.0

product
Partition Assistant
shiny521
last update date: 15 years ago

Score 5.0

product
google-clone
jenifferhomes
last update date: 15 years ago

Score 5.6

product
Quran Audio Library
boubakr92
last update date: 12 years ago

Score 4.4

product
Remove Current Track
alexoleshkevich
last update date: 14 years ago

Score 4.7

product
indoLyrics
cyrus007
last update date: 14 years ago

Score 4.7



System Tags