Amarok Folder Icons

Utilities

Source (required if based on other people's work):

0
Score 69%
Description:

Amarok has a builtin function for setting the icon for folders (the one that displays in Konqueror etc) to be the cover image for the album it contains. However, it only works if you let it reorganise your music.

This script will scan the current directory and sub directories for music, and set all the folder icons where it can determine that the folder contains tracks from just one album.

This works best if you store your albums in a flat structure e.g.

/path/to/your/music/artist name - album name/

## Installation ##

Copy the script to your main music directory, and make it executable:

At a terminal:

$ chmod +x 'make_amarok_folder_icons.py'

## Usage ##

At a terminal:

$ cd /to/your/music/folder
$ ./make_amarok_folder_icons.py

## Requirements ##

- Python 2.5 (patches for python 2.4 welcomed!)
- pydcop (Debian package python-dcop)
Last changelog:

11 years ago

0.2 - Added support for MySQL and Postgresql databases (using Amarok's dcop interface to query them)

0.1.1 - Fixed #! line to point to python 2.5, which is currently required.

0.1 Initial release

jackyohh

10 years ago

python ./make_amarok_folder_icons.py
Traceback (most recent call last):
File "./make_amarok_folder_icons.py", line 35, in ?
import sqlite3
ImportError: No module named sqlite3

but sqlite3 (3.5.7-1)and python-sqlite (1.0.1-7) are already installed.

Report

markey

11 years ago

This is not an Amarok Script, it's just a script that can be used with Amarok.

Please change the category, otherwise users will get errors when they try to download it with the script manager.

Report

C

spookster

11 years ago

Thanks, I didn't realise that Amarok's Get Hot New Stuff linked into kde-apps. I've fixed it now.

Report

HessiJames

11 years ago

hi,
thank you for this great script.
just one thing that would be cool is, if it could copy the cover to the folder and link it as folder icon.

Report

C

spookster

11 years ago

You mean it should make a copy of image in the folder? That seems messier to me. You can locate the cover image by looking at the .directory file.

Also, I may be getting myself into trouble with Amazon copyright. Currently Amarok handles the Amazon copyright issues itself, and it seems safer to leave it that way.

Report

HessiJames

11 years ago

i don't think copying the covers would mess it up, but the amazon thing is an argument.

Report

enaut

11 years ago

you know that the extension you want to have basically exists? try out copycover!

mfg enaut

Report

C

spookster

11 years ago

You are right - I only discovered CopyCover (http://www.kde-apps.org/content/show.php?content=22517) after I wrote this. In fact, I probably wouldn't have written this script if the description of CopyCover on http://amarok.kde.org/wiki/Scripts included the fact that it had a mode that worked for tracks that are not currently playing.

Report

11 years ago

0.2 - Added support for MySQL and Postgresql databases (using Amarok's dcop interface to query them)

0.1.1 - Fixed #! line to point to python 2.5, which is currently required.

0.1 Initial release

product-maker 6 21

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.2
updated Jul 23 2007
added Jul 23 2007
downloads today
0
page views today 1
System Tags app software