diff options
Diffstat (limited to 'rapid/media.py')
-rwxr-xr-x | rapid/media.py | 5 |
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 |