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)
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