Update of /cvsroot/freevo/freevo/src/audio/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv15370
Modified Files:
coversearch.py
Log Message:
o remove some debug strings
o remove (...) and [...] from search string
Index: coversearch.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/plugins/coversearch.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** coversearch.py 19 Jul 2003 19:18:16 -0000 1.13
--- coversearch.py 19 Jul 2003 19:41:26 -0000 1.14
***************
*** 14,17 ****
--- 14,21 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.14 2003/07/19 19:41:26 dischi
+ # o remove some debug strings
+ # o remove (...) and [...] from search string
+ #
# Revision 1.13 2003/07/19 19:18:16 dischi
# o Since we already load the image from the net, use that image as preview
***************
*** 181,187 ****
artist = self.item.info['artist']
! amazon.setLicense(self.license)
try:
! cover = amazon.searchByKeyword('%s %s' % (artist,album) ,
product_line="music")
except amazon.AmazonError:
box.destroy()
--- 185,193 ----
artist = self.item.info['artist']
! amazon.setLicense(self.license)
! search_string = '%s %s' % (artist,album)
! search_string = re.sub('[\(\[].*[\)\]]', '', search_string)
try:
! cover = amazon.searchByKeyword(search_string , product_line="music")
except amazon.AmazonError:
box.destroy()
***************
*** 205,209 ****
for i in range(len(cover)):
- print "Checking Large Cover"
m = urllib2.urlopen(cover[i].ImageUrlLarge)
if not (m.info()['Content-Length'] == '807'):
--- 211,214 ----
***************
*** 216,220 ****
m.close()
# see if a small one is available
- print "No Large Cover, Checking Small Cover..."
n = urllib2.urlopen(cover[i].ImageUrlMedium)
if not (n.info()['Content-Length'] == '807'):
--- 221,224 ----
***************
*** 226,232 ****
n.close()
# maybe the url is wrong, try to change '.01.' to '.03.'
- print cover[i].ImageUrlLarge
cover[i].ImageUrlLarge = cover[i].ImageUrlLarge.replace('.01.',
'.03.')
- print cover[i].ImageUrlLarge
n = urllib2.urlopen(cover[i].ImageUrlLarge)
if not (n.info()['Content-Length'] == '807'):
--- 230,234 ----
***************
*** 278,281 ****
--- 280,289 ----
self.item.image = filename
+ if not self.item.type == 'audiocd' and self.item.parent.type == 'dir':
+ # set the new cover to all items
+ self.item.parent.image = filename
+ for i in self.item.parent.menu.choices:
+ i.image = filename
+
# check if we have to go one menu back (called directly) or
# two (called from the item menu)
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog