Image 01
profile-image

ChrisFritz

Chris Fritz Murrieta, United States of America
amaroKer

Karamba & Superkaramba by Lechio 80 comments

This was easy to fix for me. (I own many Japanese CDs, so the lack of Unicode support prevented me from enjoying amaroKer). I edited amaroKer.py in two places. In the top area of the updateTitle() and updateArtist() functions, I added:

text = unicode(text,'utf-8')

Now Unicode is supported =D (This is for the "amaroKer.theme" since I don't use the "amaroKerCase.theme".)

If anyone is impatient for Unicode support, now you don't have to wait =) - Mar 02 2006
Smart DJ

Amarok 1.x Scripts by RuddO 66 comments

Ah, I see jdm33 further below in the comments found the solution. When I changed the greater/least to max/min, it worked out just fine (I'm still running an older Smart DJ, so I don't know if this was already fixed in the current release after jdm33's comment.) Now that this works, I can finally enjoy the script =D - Dec 01 2005
Smart DJ

Amarok 1.x Scripts by RuddO 66 comments

I've been having the same problem as this person -- when I get a chance, I'll see if I can figure out what's going on, and e-mail anything I find, if I find anything. - Dec 01 2005
Smart DJ

Amarok 1.x Scripts by RuddO 66 comments

I already e-mailed the author this information, but I'll repeat it here in case anyone has the same problem I had.

I use SQLite, and have some files with an apostrophe (') in the filename. Smart DJ escapes SQL statements with a backslash, but SQLite escapes with an apostrophe. Because of this, when Smart DJ tries to enter database information and move to the next song, no information is entered and it's unable to move. It keeps looping over the same song.

If you use SQLite, here's a fix you can use (which causes the script to escape SQLite statements, but it won't work with other databases now). In the "Smart DJ" file, I've made this change (the post will probably remove the Python spacing):

def sql_escape(string):
newstring = []
for c in string:
if c == "'":
newstring.append("''")
# if c == "\\":
# newstring.append("\\\\")
# elif c == "'":
# newstring.append("\\'")
else:
newstring.append(c)
return "'" + "".join(newstring) + "'"

Again, this comments out MySQL and Postgresql escaping and puts in SQLite escaping. - Nov 22 2005
Smart DJ

Amarok 1.x Scripts by RuddO 66 comments

I'm very interested in this plug-in, but it appears to reach an infinite loop when analyzing a file which contains an apostrophe. I'm not familiar with Python enough to determine what coding to change to fix this.

I believe the problem is an apostrophe in the filename because all my other files had no problem, until this one which kept looping this data in the log:

---------------------
INFO:SongAnalyzer: Processing: /home/chris/Music/CDs/Pokemon/2BA Master/11 - Misty's Song.ogg
DEBUG:SongAnalyzer: Songanalysis interface available: 2 used for this song: 2
DEBUG:SongAnalyzer: A-OK, we only collect
DEBUG:SongAnalyzer: collecting info from extattrs
DEBUG:SongAnalyzer: collected 124.190369 [...etc...] 4.357717
---------------------

Other files from that CD analyzed without problems. So, I moved that file to somewhere else, and restarted Smart DJ. Everything was fine until it reached another file with an apostrophe, and kept looping:

---------------------
INFO:SongAnalyzer: Processing: /home/chris/Music/CDs/Sailormoon/Sailor Moon: Songs From the TV Series/She's Got The Power.ogg
DEBUG:SongAnalyzer: Songanalysis interface available: 2 used for this song: 2
DEBUG:SongAnalyzer: A-OK, we only collect
DEBUG:SongAnalyzer: collecting info from extattrs
DEBUG:SongAnalyzer: collected 150.093596 [...etc...] 2.780481
---------------------

I hope this problem is easy to identify and fix. - Nov 21 2005