-
 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    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


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

CopyCover (amaroK Script)

   1.9  

Amarok Script

Score 82%
CopyCover (amaroK Script)
zoom


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

Description:

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.




Changelog:

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




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



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

-

 Jpg files

 
 by Zeeuw on: Jul 27 2007
 
Score 50%

Hi,

I really like your script, though i probably use it for something else then the rest of you guys do. I guess you use this script to set the album cover as the folder icon?
I use it for my mp3 player (Cowon iAudio A2), which can display album covers. This mp3 player detects whether you have a cover.jpg in the folder of the song you are playing. If it is, it displays this image, else, it displays the default empty cd icon. The problem of using this script for that purpose is that my mp3 player only supports jpg's as album cover, no png's. Just renaming cover.png to cover.jpg doesn't fool my mp3 player.
So i had to think of another solution: change the script. I editted addcoverdirs.sh, and replaced all png's with jpg's and all jpg's by png's. It didn't work though, because the python script doesn't use addcoverdirs.sh. (I needed some time to find that out :P)
Now i got it working, but i have to run the script each time an cover has been added. Is there a possibility to implent this feature in the python script?

By the way: i had to change musicdirs="awk command" to musicdirs="/path/to/music", because "awk -F "=" '/^Collection Folders/ {print $2}' ~/.kde/share/config/amarokrc" doesn't give any results. (amarokrc does exist)

Then something else: is it, or will it be, possible for amarok to copy the cover.jpg automatically to my mp3 player, that would be great. (you can just drag and drop files to the iaudio a2, it doesn't use any database)
Maybe this would be a nice feature for amarok 2.0? Please let me know if you would like that feature too. (maybe i will submit a mockup for amarok)


Reply to this

-

 Re: Jpg files

 
 by miguel2 on: Sep 27 2007
 
Score 50%

I've seen a little script to convert the png to jpg here: http://www.anythingbutipod.com/forum/showpost.php?p=30263&postcount=18

You could run it after the sync.
I think an option in CopyCover to choose if the cover should saved as png or jpg would be nice.


Reply to this

-
.

 python processes

 
 by enaut on: Sep 25 2007
 
Score 50%

Hi
my Laptop seemed recently incredibly slow. So I checked what process it is that slows the system down and I discovered about 80 python processes that all use exactly 3.3MB of Ram space. by indicating them with ps -x I discovered that they are all rutines of your copycover script.
While researching how they get started I discovered that each time Amarok is running in the system tray while I shut down or Amarok is not closed correctly there is a remaining process. and cute KDE restarts all of them every time again when I start my computer atempting to restore the last session. even if amarok is not started.

so please include in your script:
# a way to test wether amarok is running
# a way to test wether another rutine of the script is already running


Reply to this

-
.

 Re: python processes

 
 by chrisKA on: Nov 27 2007
 
Score 50%

If you have an instance of a QApplication all you need to insert is the following method:
Quote:

def saveState(self, sessionmanager):
# script is started by amarok, not by KDE's session manager
sessionmanager.setRestartHint(QSessionManager.RestartNever)

HTH


Reply to this

-

 scheduling

 
 by cewanf on: Sep 26 2007
 
Score 50%

How can I schedule copycover-offline.py to run at a certain time every night?
I tried crontab, but it only produces the error:
"AmaroK must be running. Please launch it and restart this script."
Even though Amarok is running...


Reply to this

-

 Re: scheduling

 
 by gauret on: Sep 26 2007
 
Score 50%

You have to set your DISPLAY variable. Add "DISPLAY=:0" in front of the command call, that should do it (it's a common problem: using cron with graphical apps. I'm sure you favorite search engine will help you)


Reply to this

-

 Re: Re: scheduling

 
 by cewanf on: Sep 26 2007
 
Score 50%

Wohoo!
Thanks a lot for helping!!

Now I have scheduled Amarok to scan its collection for changes every night, and two hours later to run the copycover offline script :-)


Reply to this

-

 offline version

 
 by wishmechaos on: Oct 10 2007
 
Score 50%

Hi. The script version works great, but I can't get the offline version to work.

$ ./copycover-offline.py -d
Running in debug mode. No change will be done.

-Traceback (most recent call last):
File "./copycover-offline.py", line 129, in <module>
for file in os.listdir(album_path):
OSError: [Errno 2] No such file or directory: '0'

running Ubuntu Feisty, Python 2.5.1

cheers


Reply to this

-

 Re: offline version

 
 by wolfundschaf on: Oct 14 2007
 
Score 50%

Hi,

I had the same problem and found a solution. Apparently, one of the SQL queries does not work correctly, at least not with MySQL

You have to change line 112 to this:

dcop_albums = commands.getoutput('''dcop amarok collection query "SELECT DISTINCT album.name, CONCAT(devices.lastmountpoint,'/',tags.dir) FROM tags, album, devices ''' \

Now, CONCAT is used instead of the || operator.

This works with Ubuntu 7.04, Pyhton 5.2.1 and Amarok 1.4.7 using MySQL 5.0.38-Ubuntu_0ubuntu1.1-log as database.

I hope this helps,
Wolf


Reply to this

-

 Re: Re: offline vers

 
 by wishmechaos on: Oct 17 2007
 
Score 50%

Thanks, that worked perfectly. Now I'm trying to modify it so it copies every album art to a single folder, named %Album%Artist.%ext, so my mp3 player recognises it. If anyone has done anything similar, please post :)

Cheers.


Reply to this

-

 Re: Re: offline version

 
 by xxmel0nxx on: Oct 28 2007
 
Score 50%

It didn't work for me, the query that did work was SELECT DISTINCT album.name, tags.dir FROM album JOIN tags ON album.id = tags.album WHERE tags.artist = %s I'm using Python 2.4.4, Mysql 5.0.44.


Reply to this

-

 Re: Re: Re: offline

 
 by jassuncao on: Dec 8 2007
 
Score 50%

Same for me. Using the 'devices' table in the query seems to exclude all the albums stored in my root partition


Reply to this

-
.

 Re: Re: Re: offline

 
 by sdyson on: Apr 1 2008
 
Score 50%

Cheers! Worked for me.


Reply to this

-

 Re: Re: offline vers

 
 by KimBisgaard on: Dec 9 2007
 
Score 50%

Unfortunately PostgreSQL does not have a CONCAT function, but uses '||' as the string concat operator :-(


Reply to this

-
.

 Spaces in filenames

 
 by xhorder on: Oct 28 2007
 
Score 50%

I love this script, but with one comment: Would it be possible to KEEP the spaces in the filenames?
That's the only thing keeping this from being perfect.


Reply to this

-

 Getting error

 
 by dunnix20 on: Dec 13 2007
 
Score 50%

While running the script from within amarok I get:

[AmaroK CopyCover Script] Started.
TypeError: saveState() takes exactly 1 argument (2 given)


any Ideas on what might be causing this?
I'm using SQLlite


Reply to this

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

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

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

Copyright 2003-2014 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.