summaryrefslogtreecommitdiff
path: root/rapid/media.py
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2010-07-03 16:56:43 +0200
committerJulien Valroff <julien@kirya.net>2010-07-03 16:56:43 +0200
commit1de9270ded0db955e309a21b8abc8981237fbc52 (patch)
treef5b7126171b4d263ea493bff9158758ea36d1047 /rapid/media.py
parentf49f82b74596eda33ee5e2fc14e51fd67351b9ec (diff)
Imported Upstream version 0.2.3upstream/0.2.3
Diffstat (limited to 'rapid/media.py')
-rwxr-xr-xrapid/media.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rapid/media.py b/rapid/media.py
index 4ed5380..d00855a 100755
--- a/rapid/media.py
+++ b/rapid/media.py
@@ -159,10 +159,11 @@ class CardMedia(Media):
else:
return self.fileSizeSum
- def _firstFile(self, isCorrectFile):
+ def _firstFile(self, function_to_check):
+
if self.imagesAndVideos:
for i in range(len(self.imagesAndVideos)):
- if isCorrectFile(self.imagesAndVideos[i]):
+ if function_to_check(self.imagesAndVideos[i][0]):
return self.imagesAndVideos[i]
else:
return None