


Plasma Comic Sources by mfuchs 6 comments

Browser by adjam 290 comments
The missing characters should be u"\xc5" for "Å" and u"\xe5" for "å".
(The "u" before the string indicated that the following string is Unicode-encoded, just to have said this :-)
Perhaps, we should do a i18n via gettext? Would be pretty cool, wouldn't it?! But perhaps, one should first make the statistisc script rock and be configurable by some GUI or at least an easy-to-understand configuration file ... - Jul 05 2008
E. g. u"\xe4" instead of "ä".
You can find out these character sequences by starting python in a console and doing the following:
from locale import getpreferredencoding
localEncoding = getpreferredencoding()
Then, you can do something like
"ÄÖÜäöü".decode(localEncoding)
and Python will print out the escaped Unicode string, e. g.:
u'\xc4\xd6\xdc\xe4\xf6\xfc' - Jul 04 2008
Artist, album, title and genre are logged by logger. I don't think that the length of the filename causes this error. Are you sure that the files are in the collection database? If so, it would be very interesting if the URL stored in the database differs from the actual url. If you know SQL a bit, you could search directly inside the database doing "sqlite3 ~/.kde/share/apps/amarok/collection.db", querying the table "tags". The data is not fetched from the mp3 (or whatever) files theirselves, but from Amarok's database. So the songs have to be indexed by Amarok.
Try modifying the playstat.py script from version 0.2 -- that should be way easier than modifying the previous versions :-) - Jul 04 2008
I added this to the readme file (and to the description above): "The current progress is written to stderr and the HTML is written to stdout, so do e. g. ./playstat > stat.htm on a console to have the HTML written to stat.htm"
The playstat script was only thought to be an example how the database could be queried to produce some statistics. Perhaps, one could modify it in a way that it can be configured and run from Amarok. I'll see ... :-) - Jul 03 2008
Here, the songs are all in subdirectories of ~. This could cause the error ... the "url" col of the "tags" table in my database looks e. g. like this: "./tobias/Musik/Alben/Clawfinger/1993 Deaf Dumb Blind/07. Warfair.mp3". Could you check if an absolute path is used instead if the music is not inside the home directory? E. g. with "dcop amarok collection query 'select url from tags limit 10'" - Jun 28 2008

Amarok 1.x Scripts by msan 53 comments
Anyway -- a cool script :-) - Nov 02 2007