KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   


- Content .- Fans (2) .- Knowledge Base  . 

CopyCover (amaroK Script)


Amarok Script

Score 82%
CopyCover (amaroK Script)

Link:  http://
Downloads:  21698
Submitted:  Apr 1 2005
Updated:  Oct 21 2007


Copy the cover of current playing track to the song's dir. Does not overwrite
existing images in this folder. The filenames can be configured with the
"Configure" dialog. By default, it's the album's name, with spaces replaced
by underscores.

An "offline" version is also included. If you have amaroK >= 1.2.3,
launch it and run the script on the command line. It will find all the downloaded covers and copy them in the right directory, just as the amarok plugin would have done. It also creates the desktop files.
Make sure you first run the script with the "-d" option (debug mode), in which
the actions will only be printed, not commited. A --help option is available.
AmaroK >= 1.2.3 and python >= 2.3 are required for this offline version.

The copycover-offline.py and addcoverdirs.sh scripts are NOT meant to be run through Amarok's script manager.


Version: 1.9 Date: 2007/10/21
- fix queries when the database is in MySQL
- tell the session manager not to restart the script on login

Version: 1.8 Date: 2007/02/17
- fix the copycover-offline.py script to use the new device path feature of
Amarok. Thanks to all those who sent me a patch.

Version: 1.7 Date: 2006/10/19
- fixes for Amarok 1.4
- progress bar on the offline version
- use large images when available

Version: 1.6 Date: 2005/05/31
- bugfixes for the "remove covers" option
Thanks a lot to Gleb Litvjak and KNT for that.
- write debuginfo to ~/.xsession-errors by default

(CopyCover AmaroK plugin)
Send to a friend
Other  Apps  from gauret
Report inappropriate content

goto page: prev   1  2  3  4  5  6  7  8  9  10  11 



 by sid6point7 on: Jul 11 2006
Score 50%

first of all: great skript! I searched for something like that quite a long time.

The online version works fine, but for the first time I tried to run the offline skript, from amarok as well es the command line. In both cases I get the following:
Traceback (most recent call last):
File "copycover-offline.py", line 16, in ?
import distutils.sysconfig
ImportError: No module named distutils.sysconfig
ok, it wants to have a module called distutils.sysconfig, but where can I get it? And where do I have to put it?

But anyway: Great skript!
Thanks a lot!

amarok 1.4.1
suse 10.1

Reply to this


 Re: distutils.syscon

 by sid6point7 on: Jul 11 2006
Score 50%

ok ok I have it!
It's in the package python-devel.
Now it's working.
I love it!

Reply to this


 dynamic collection

 by richlv on: Jul 20 2006
Score 50%

since the introduction of dynamic collection in svn copycover is not working :

No such file or directory: './data/m/A/Alkaline Trio/Stupid Kid'

dynmaic collection splits path in relative path & mountpoint, so probably copycover should be updated to work with the new condition.

if there are no huge problems, dynamic collection will be in 1.4.2, which will mean no working copycover.

Reply to this


 Re: dynamic collection

 by richlv on: Aug 23 2006
Score 50%

... and with 1.4.2 released (including dynamic collection) copycover script now does not work in a stable release

Reply to this


 Re: Re: dynamic collection

 by triptol on: Sep 4 2006
Score 50%

Only looked into copycover-offline...

Changing line 112 from:
for file in os.listdir(album_tuple[1]):

for file in os.listdir(album_tuple[1].lstrip('.')):

Seems to fix it.

The new album_tuple seems to have a '.' in front of the path, effectively making the absolute path a relative one (why-oh-why?). Removing it, changes it into an absolute path again...

Now I'm not sure yet, whether the files are copied correctly as well... Will see about that.

Reply to this


 Re: Re: Re: dynamic

 by kswenson on: Nov 4 2006
Score 50%

I have a similar problem except it is now using an invalid absolute path in the following form. I'm using version 1.7.

If my username is UNAME then the path that it looks at is "/UNAME/my/music/files/".

I went to line 130 and changed
"for file in os.listdir(album_tuple[1][1:]):"
" for file in os.listdir(album_tuple[1][0:]):"

and the script works if I run it from my /home directory because it builds paths that look like "./UNAME/my/music/files/".

Thanks for writing this thing. It is nice and I hope you can sort out this issue.

Reply to this



 by jsteiner on: Aug 15 2006
Score 50%

I've been looking for something like this everywhere, thanks mate :D

Free Online Games
Reply to this


 no such file or...

 by alejmatias on: Sep 19 2006
Score 50%

when i run "copycover-offline -d" works all fine, but when i run just "copycover-offline" i get the following message

Copying cover for album "Marilyn Manson - Portrait Of An American Family" to ./media/MUSICA/MP3_Music/Marilyn Manson/Portrait Of An American Family/PortraitOfAnAmericanFamily.png
Traceback (most recent call last):
File "./copycover-offline.py", line 119, in ?
copyCover( album_cover, destination )
File "./copycover-offline.py", line 84, in copyCover
shutil.copyfile(source, destination)
File "/usr/lib/python2.4/shutil.py", line 48, in copyfile
fdst = open(dst, 'wb')
IOError: [Errno 2] No such file or directory: './media/MUSICA/MP3_Music/Marilyn Manson/Portrait Of An American Family/PortraitOfAnAmericanFamily.png'

Already cheked for capital leters, permisions, also the folder and the cover exist. My music is in a fat32 partition mounted with umask=000

Please help, and forgive my poor english, i'm writing from Argentina

Reply to this


 patch for 1.6

 by lorijho on: Oct 9 2006
Score 50%

Hi, here's a patch against copycover 1.6 that honors the changes made to amarok-1.4.1 (as of writing in debian/testing). It will save the large cover file in the large directory instead of the resized (small) file in the cache directory.

!!This patch has only been tested with amarok-1.4.1 (as of now)!!

--- copycover.py 2005-05-31 18:58:46.000000000 +0200
+++ /home/lorijho/.kde/share/apps/amarok/scripts/copycover/copycover.py 2006-10-09 15:49:21.000000000 +0200
@@ -269,6 +269,13 @@
def copyCover(self):
""" Copy a cover to a song's directory """
cover = commands.getoutput("dcop amarok player coverImage")
+ str_cacheFileName = os.path.split(cover)[-1]
+ str_cacheDir = os.path.dirname(cover)
+ str_baseDir = os.path.split(str_cacheDir)[0]
+ str_largeDir = os.path.join(str_baseDir, "large")
+ str_largeFileName = str_cacheFileName.split("@")[1]
+ cover = os.path.join(str_largeDir, str_largeFileName)
if cover.endswith('nocover.png'):
songDir = self.getAlbumDir()

Reply to this


 Re: patch for 1.6

 by gauret on: Oct 13 2006
Score 50%

Thanks, I've merged your patch.

The scripts works for my current amarok, which is 1.4.3. If it stops working when dynamic collections are added, I'll update it (but please remind me :) )
In this next version, your patch will be there.

Reply to this


 Re: Re: patch for 1.6

 by richlv on: Oct 19 2006
Score 50%

hmm... i am surprised it works for you with 1.4.3, as dynamic collection was merged in 1.4.2 ;)

maybe you have it disabled ?

anyway, the script (v1.7) does not work for me in current svn, as it tries accessing relative path without device.
for file in os.listdir(album_tuple[1][1:]):
OSError: [Errno 2] No such file or directory: '/relative_path/A/Alkaline Trio/Alkaline_Trio-Crimson-(Webrip_Advance)-2005-GCA'

Reply to this



 by Aikurn on: Oct 19 2006
Score 50%

The last time I checked it we were living in 2006... though YMMV :)

Reply to this


 Re: Changelog

 by gauret on: Oct 19 2006
Score 50%

Yeah, my time machine is still in beta. I'll fix it, thanks for reporting :)

Reply to this

goto page: prev   1  2  3  4  5  6  7  8  9  10  11 

Add commentBack

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2016 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.