CopyCover2

Amarok 2.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

5
Score 79.3%
Description:

Copy the cover of current playing track to the song's dir using Amarok'one fetched.
It does not overwrite existing images in place.


TODO:
-still more translations! (contact me to help!)
-add an option to set the cover as default icon of the folder
-check if the current folder's name is the same as the album name for varius artist album.

PS:Originaly inspired from one of my favorits Amarok1.4 script http://www.kde-apps.org/content/show.php/CopyCover+%28amaroK+Script%29?content=22517.
Last changelog:

8 years ago

Version 1.4.4 :
- added Russian translation thanks to Konstantin Duderskii (dooder) !

Version 1.4.3 :
- added Czech translation thanks to Pavel Fric! (updated spanish one thanks to Juan Chak).

Version 1.4.2 :
- fix unsupported yet language so that It will still launch the English version. Thanks to Tim Ruffing for his attention and his patch for that!

Version 1.4.1 :
- small french update

Version 1.4 :
-More translations,specially the UI.. : full english, spanish and french.
-Check for the extension of the source image and respect it.
Huge thanks to Juan Chak for his help on this release (mostly his changes)

Version 1.3.1
-add a link to this Website in the about dialog

Version 1.3
-small bugfix for the fixname

Version 1.2
-added an UI to let the user chose the name of the created file
-can now use dynamic names (ie from current album and artist)

Version 1.1
-added a verification..
-French translation (so hard! :p)

Version 1.0
-first fully functional version - zero options

C

garthps

10 years ago

Hi,
If I understand, you don't get right how the script works:
If amarok has a cover
verify if this cover is from amarok's directory (fetched one) or if is from the song's directory.
If it from the song's directory
then do nothing
if it is a fetched one
then move it to the song's directory

So in your case, if amarok does not have a cover then it does nothing! It does not create a cover! It only moves what amarok had found.
What it can occurred is that just after my script had move the cover, then amarok is confused for a few seconds... but that is all for me.
I am not sure to understand if it is what you mean
CU

Report

C

garthps

10 years ago

Are you sure that Takahani's version deals with JPG??? anyway, I hae always wrote that in my todolist..."-Check for the format of the source image"
I will see what I can do

Report

C

garthps

10 years ago

eu sorry.. in fact if I use always jpg because amarok's fetched image ARE jpg's, you can check it. But it is also right that it is the case with a fresh install f amarok on a fresh account so perhaps in some cases..
Anyway checking for the real format is a good thing to do :)

Report

xro

10 years ago

thanks :)

easiest way would propably be to read the first 8 bytes of source image and check against png magic sig. that way no libs are necessary..

Report

Takahani

10 years ago

Salut Sylvain ;)

Check there :
http://gitorious.org/amarok/amarok/trees/master/playground/src/scripts/copycover

It has been done already, with a config UI etc ...

I just was to lazy to create a tar.gz :p

Maybe you can make a mix of both code and publish it in here. The basic for the ui works just need some more extension, especially I would like it to automatically write the cover when we've downloaded one ...

Maybe we can discuss about that on irc (#Takahani)

Thanks
- Simon

Report

C

garthps

10 years ago

ok .... bouuu
could n't you post it!?!!
tss :p
I will contact you
CU

Report

Takahani

10 years ago

No pb, we can group the effort !
copycover FTW :)

Report

gauret

10 years ago

Hi guys,

I'm the original author of the CopyCover script for Amarok 1.4.

I didn't have a need for it these last years, that's why I never ported it to Amarok 2.

This weekend, I suddendly needed it, so I said to myself "why not use this occasion to port CopyCover to Amarok2, at long last ?".

I just spent the last 5 days learning QTJambi and the Amarok APIs. Now that I have finished porting the script, I come here to update the page (feeling like I did a good deed) and find this...

Not only had someone already done the work, but TWO people had ported the script already !!

Please give me a few minutes while I jump from the nearest building.

Seriously, I'm deeply sorry for not porting the script earlier and causing you guys to do duplicated work.

I was going to upload my version to Gitorious, maybe there's something to salvage nonetheless ? I'll go and do that, you'll tell me if it's worth something.

Thanks to you for doing what I've been too lazy to do for 2 years.

If that doesn't teach me to do my research before picking up any significant piece of work...

By the way, funny thing that we're all french :)

Report

gauret

10 years ago

Uploaded to Gitorious, the project is here: http://gitorious.org/copycover.

Report

C

garthps

10 years ago

Hi Aurélien!
First of all thank you for your original work!
Then, yeah always search if it has not already been done! Me I had an excuse , Takahani did not put it public! :p
But at least we could with our 3 much less free time do make it better.
I will check out your code this evening to see what is the best move to do.
Personally my script can be improved but I don't have much time for that. So perhaps we tree of us can do it :)
CU

Report

8 years ago

Version 1.4.4 :
- added Russian translation thanks to Konstantin Duderskii (dooder) !

Version 1.4.3 :
- added Czech translation thanks to Pavel Fric! (updated spanish one thanks to Juan Chak).

Version 1.4.2 :
- fix unsupported yet language so that It will still launch the English version. Thanks to Tim Ruffing for his attention and his patch for that!

Version 1.4.1 :
- small french update

Version 1.4 :
-More translations,specially the UI.. : full english, spanish and french.
-Check for the extension of the source image and respect it.
Huge thanks to Juan Chak for his help on this release (mostly his changes)

Version 1.3.1
-add a link to this Website in the about dialog

Version 1.3
-small bugfix for the fixname

Version 1.2
-added an UI to let the user chose the name of the created file
-can now use dynamic names (ie from current album and artist)

Version 1.1
-added a verification..
-French translation (so hard! :p)

Version 1.0
-first fully functional version - zero options

12345678910
11
product-maker dooder Jan 07 2012 9 excellent
product-maker e1nste1n Oct 09 2011 9 excellent
product-maker TomekPoplewski Sep 16 2011 9 excellent
product-maker bballard Aug 25 2011 9 excellent
product-maker unnaivi Aug 03 2011 9 excellent
product-maker kaotikzen Jun 02 2011 9 excellent
product-maker trw25 May 01 2011 9 excellent
product-maker jesterhead Apr 02 2011 9 excellent
product-maker MichauSm Mar 19 2011 9 excellent
product-maker bofhorg Mar 08 2011 9 excellent
product-maker lacsilva Mar 01 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
MoonBlossom
Mar 19 2011
anyr
Jun 01 2010
Bert
Feb 17 2010
sylvanas
Feb 10 2010
SeaJey
Jan 30 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4.4
updated Apr 09 2012
added Oct 06 2009
downloads 24h
1
mediaviews 24h 0
pageviews 24h 3
System Tags addon