This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 29th, 2008  |  syntax: Python  |  size: 0.79 KB  |  views: 224  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- copycover-offline.py.org    2008-12-29 21:50:41.000000000 -0500
  2. +++ copycover-offline.py        2008-12-29 22:01:40.000000000 -0500
  3.  -116,7 +116,7 @@ for artist_tuple in artists:
  4.          inc = inc + 1
  5.          if inc >= len(progress):
  6.              inc = 0
  7. -    dcop_albums = commands.getoutput('''dcop amarok collection query "SELECT DISTINCT album.name, CONCAT(devices.lastmountpoint,'/',tags.dir) FROM tags, album, devices ''' \
  8. +    dcop_albums = commands.getoutput('''dcop amarok collection query "SELECT DISTINCT album.name, devices.lastmountpoint || '/' || tags.dir FROM tags, album, devices ''' \
  9.                                      +'''WHERE tags.album = album.id AND tags.deviceid = devices.id AND album.name != '' AND tags.artist = %s"''' % artist_tuple[0])
  10.  
  11.      if not dcop_albums:
clone this paste RAW Paste Data