Author: duncan
Date: Mon Dec 10 14:10:52 2007
New Revision: 10197
Log:
Fixed the auto-playing of a Audio when inserted
Fixed rom_drives hot showing the initial media event (This was deliberate)
Fixed coversearch failing with a timeout
Modified:
branches/rel-1/freevo/src/audio/audiodiskitem.py
branches/rel-1/freevo/src/audio/plugins/coversearch.py
branches/rel-1/freevo/src/plugins/rom_drives.py
Modified: branches/rel-1/freevo/src/audio/audiodiskitem.py
==============================================================================
--- branches/rel-1/freevo/src/audio/audiodiskitem.py (original)
+++ branches/rel-1/freevo/src/audio/audiodiskitem.py Mon Dec 10 14:10:52 2007
@@ -43,7 +43,7 @@
class for handling audio disks
"""
def __init__(self, disc_id, parent, devicename=None, display_type=None):
- _debug_('__init__(disc_id=%r, parent=%r, devicename=%r,
display_type=%r)' % \
+ _debug_('AudioDiskItem.__init__(disc_id=%r, parent=%r, devicename=%r,
display_type=%r)' % \
(disc_id, parent, devicename, display_type), 2)
Playlist.__init__(self, parent=parent)
@@ -69,7 +69,8 @@
return a list of actions for this item
"""
_debug_('actions()', 2)
- items = [ ( self.cwd(), _('Browse disc') ) ]
+ self.cwd()
+ items = [ ( self.cwd, _('Browse disc') ) ]
return items
Modified: branches/rel-1/freevo/src/audio/plugins/coversearch.py
==============================================================================
--- branches/rel-1/freevo/src/audio/plugins/coversearch.py (original)
+++ branches/rel-1/freevo/src/audio/plugins/coversearch.py Mon Dec 10
14:10:52 2007
@@ -228,9 +228,11 @@
if cover[i].ImageUrlLarge:
m = urllib2.urlopen(cover[i].ImageUrlLarge)
imageFound = True
- except urllib2.HTTPError:
+ except urllib2.URLError, e:
+ print 'URLError: %s' % (e)
+ except urllib2.HTTPError, e:
# Amazon returned a 404
- pass
+ print 'HTTPError: %s' % (e)
if imageFound and (m.info()['Content-Length'] != '807'):
image = Image.open_from_memory(m.read())
items += [ menu.MenuItem('%s' % cover[i].ProductName,
Modified: branches/rel-1/freevo/src/plugins/rom_drives.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/rom_drives.py (original)
+++ branches/rel-1/freevo/src/plugins/rom_drives.py Mon Dec 10 14:10:52 2007
@@ -842,7 +842,7 @@
rebuild_file = '/this/file/should/not/exist'
for media in config.REMOVABLE_MEDIA:
- media.drive_status = media.get_drive_status()
+ media.drive_status = CDS_NO_INFO #media.get_drive_status()
if not rc.app():
# check only in the menu
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog