Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/record.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-01 21:45:44 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-01 21:45:44 (GMT)
commit8a3a8bb4a8859fe51bd78f32d96f5bebdb20b320 (patch)
tree4f8458615204deea1aa43e154b5ebd38298cd3d9 /record.py
parent9ba5ce5c54a679c93a44776397596006be882510 (diff)
big pic over tube?
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@837 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'record.py')
-rwxr-xr-xrecord.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/record.py b/record.py
index 18eb841..af5bf64 100755
--- a/record.py
+++ b/record.py
@@ -449,16 +449,22 @@ class Record(activity.Activity):
if (recd.type == Constants.TYPE_AUDIO):
self.__class__.log.debug("_recdBitsArrivedCb:TYPE_AUDIO")
greplay = Greplay()
- greplay.connect("coverart-found", self._getAlbumArtCb, None )
- filepath = recd.getMediaFilelocation(False)
- greplay.findAlbumArt(filepath)
+ greplay.connect("coverart-found", self._getAlbumArtCb, recd )
+ filepath = recd.getMediaFilepath()
+ if (filepath != None):
+ if (os.path.exists(filepath)):
+ greplay.findAlbumArt(filepath)
+ else:
+ self.ui.showMeshRecd(recd)
+ else:
+ self.ui.showMeshRecd(recd)
else:
self.ui.showMeshRecd( recd )
elif part > numparts:
self.__class__.log.error('More parts than required have arrived')
- def _getAlbumArtCb( self, pixbuf, recd ):
+ def _getAlbumArtCb( self, objectThatSentTheSignal, pixbuf, recd ):
self.__class__.log.debug("_getAlbumArtCb:" + str(pixbuf) + "," + str(recd))
if (pixbuf != None):