Image 01
profile-image

tecuya

Sean Sean , United States of America
CopyCover (amaroK Script)

Amarok 1.x Scripts by gauret 143 comments

This script does not work with amarok's Dynamic Collection feature.

The following change (removing the devices table from the query) solves the issue for dynamic collection devices:



Quote:
--- copycover/copycover-offline.py 2007-10-21 07:04:22.000000000 -0700
+++ copycover_mine/copycover-offline.py 2009-01-09 15:52:05.000000000 -0800
@@ -116,8 +116,9 @@
inc = inc + 1
if inc >= len(progress):
inc = 0
- dcop_albums = commands.getoutput('''dcop amarok collection query "SELECT DISTINCT album.name, CONCAT(devices.lastmountpoint,'/',tags.dir) FROM tags, album, devices ''' \
- +'''WHERE tags.album = album.id AND tags.deviceid = devices.id AND album.name != '' AND tags.artist = %s"''' % artist_tuple[0])
+
+ dcop_albums = commands.getoutput('''dcop amarok collection query "SELECT DISTINCT album.name, tags.dir FROM tags, album ''' \
+ +'''WHERE tags.album = album.id AND album.name != '' AND tags.artist = %s"''' % artist_tuple[0])

if not dcop_albums:
continue
- Jan 09 2009
Amakode

Amarok 1.x Scripts by tobydickenson 48 comments

Version 1.0 contains a bug which prevents using the lame encoder for mp3s (on my system, at least).

After making the following change, the script works perfectly:

--- Desktop/amakode/amakode.py 2006-11-03 15:39:10.000000000 -0800
+++ .kde/share/apps/amarok/scripts/amakode/amakode.py 2007-01-03
16:15:55.000000000 -0800
@@ -97,7 +97,7 @@

# Programs used to encode (from a wav stream)
encode = {}
- encode["mp3"] = ["lame", "--abr", "128", "-" "-"]
+ encode["mp3"] = ["lame", "--abr", "128", "-", "-"]
encode["ogg"] = ["oggenc", "-q", "2", "-"]
encode["mp4"] = ["faac", "-o", "/dev/stdout", "-"]
encode["m4a"] = encode["mp4"] - Jan 03 2007