mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-25 09:35:16 +00:00
Allow for shorter versions
This commit is contained in:
parent
f13ea7375e
commit
053cba31cb
@ -203,6 +203,8 @@ class Core(
|
|||||||
version = []
|
version = []
|
||||||
for value in deluge.common.get_version().split("."):
|
for value in deluge.common.get_version().split("."):
|
||||||
version.append(int(value.split("-")[0]))
|
version.append(int(value.split("-")[0]))
|
||||||
|
while len(version) < 4:
|
||||||
|
version.append(0)
|
||||||
fingerprint = lt.fingerprint("DE", *version)
|
fingerprint = lt.fingerprint("DE", *version)
|
||||||
|
|
||||||
# Start the libtorrent session
|
# Start the libtorrent session
|
||||||
|
Loading…
x
Reference in New Issue
Block a user