示例#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)
示例#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
示例#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)
示例#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