Esempio n. 1
0
 def _calculate_file_stuff(self, filePath):
     if not filePath:
         return (None, None)
     self.log("Calculating the ed2k. Please wait...")
     ed2k = fileInfo.get_file_hash(filePath)
     size = fileInfo.get_file_size(filePath)
     return (ed2k, size)
Esempio n. 2
0
 def _calculate_file_stuff(self, filePath):
     if not filePath:
         return (None, None)
     sickrage.srLogger.info("Calculating the ed2k. Please wait...")
     ed2k = get_file_hash(filePath)
     size = get_file_size(filePath)
     return ed2k, size
Esempio n. 3
0
 def _calculate_file_stuff(self, filePath):
     if not filePath:
         return (None, None)
     self.log("Calculating the ed2k. Please wait...")
     ed2k = fileInfo.get_file_hash(filePath)
     size = fileInfo.get_file_size(filePath)
     return (ed2k, size)
Esempio n. 4
0
 def _calculate_file_stuff(self, filePath):
     if not filePath:
         return (None, None)
     sickrage.srLogger.info("Calculating the ed2k. Please wait...")
     ed2k = get_file_hash(filePath)
     size = get_file_size(filePath)
     return ed2k, size