[Core] Minor change to magnet info_hash fix
This commit is contained in:
parent
cd6669c024
commit
7c1f39d10e
|
@ -618,7 +618,7 @@ def get_magnet_info(uri):
|
||||||
log.debug("Invalid base32 magnet hash: %s, %s", xt_hash, ex)
|
log.debug("Invalid base32 magnet hash: %s, %s", xt_hash, ex)
|
||||||
break
|
break
|
||||||
elif len(xt_hash) == 40:
|
elif len(xt_hash) == 40:
|
||||||
info_hash = xt_hash
|
info_hash = xt_hash.lower()
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
elif param.startswith(dn_param):
|
elif param.startswith(dn_param):
|
||||||
|
@ -627,7 +627,7 @@ def get_magnet_info(uri):
|
||||||
if info_hash:
|
if info_hash:
|
||||||
if not name:
|
if not name:
|
||||||
name = info_hash
|
name = info_hash
|
||||||
return {"name": name, "info_hash": info_hash.lower(), "files_tree": ''}
|
return {"name": name, "info_hash": info_hash, "files_tree": ''}
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue