def _calc_sha1(self): import songdb try: return {"sha1": songdb.hashFile(self.url)} except IOError as exc: return {"error": exc}
def _calc_sha1(self): import songdb return {"sha1": songdb.hashFile(self.url)}