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)
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.
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.
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.
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
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.
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.
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.
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.
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?
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)
Ratings & Comments
57 Comments
Works smooth on Amarok 2.7, KDE 4.10.2-preview (Chakra). Thank you!
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.
Maybe it is some feature of moodbar, but not moodbar generator script?
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.
Just removed the defunct function path.isEmpty. Now it is working again.
Sory for late answer, but there is no such function call as path.isEmpty in last script version.
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.
done. Thank you
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
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.
Have you tried moodbar with ogg or mp3?
.flac .mp3 .ogg All those files types do not work, same error.
I've tried it in opensuse, I have moodfiles generated, so this is not problem of the distribution
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.
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.
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.
Thank you again. Ok, now I made checking is url empty. Can you test this script again, please?
Same error.
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.
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?
yes, in the same folder, test if this folder writable
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)
anyway thank you for the bagreport
I've Amarok build from GIT and your script installed. Moodfiles are generated, but don't result in colored timeline.
Showing up moodbar was deactivated.