Amarok Folder Icons

Utilities

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
5.0

Available as/for:
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:

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


Ratings & Comments

8 Comments

jackyohh

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.

markey

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.

spookster

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

HessiJames

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.

spookster

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.

HessiJames

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

enaut

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

spookster

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.

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

Other Utilities:

Gis Weather
RingOV
last update date: 8 years ago

Score 8.0

Splash Screen Manager
zorinos
last update date: 14 years ago

Score 7.4

BashStyle-NG
Chrispy
last update date: 9 years ago

Score 6.1

anymeal
wedesoft
last update date: 6 months ago

Score 5.0

MonA3XN 01
A3XN
last update date: 2 years ago

Score 5.0

SuperCalc (By Keshav bhatt)
keshavnrj
last update date: 10 years ago

Score 5.0



System Tags