Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

def rapid::media::CardMedia::sizeAndNumberDownloadPending (   self  ) 

Returns how many files have their status set to download pending, and their size

Definition at line 289 of file media.py.

00289                                           :
        """
        Returns how many files have their status set to download pending, and their size
        """
        v = s = 0
        fileIndex = []
        for i in range(len(self.imagesAndVideos)):
            mediaFile = self.imagesAndVideos[i][0]
            if mediaFile.status == STATUS_DOWNLOAD_PENDING:
                v += 1
                s += mediaFile.size
                fileIndex.append(i)
        return (v, s, fileIndex)
        
    def numberOfFilesNotCannotDownload(self):


Generated by  Doxygen 1.6.0   Back to index