JohnDoee / autotorrent2

Cross-seed matching and torrent lifecycle tool
https://johndoee.github.io/autotorrent2/
MIT License
151 stars 12 forks source link

'int' object has no attribute 'decode' #48

Closed koolmon10 closed 7 months ago

koolmon10 commented 1 year ago

Getting this error when adding torrents to Deluge. It seems to work for most torrents and then stop at a random point. I am unable to tell if it has processed all the torrents or not.

$ at2 add deluge torrents/.torrent | grep Added [Added] 'b15df568fb5d2672c200b2cc9b751d7585938ddc.torrent' added Traceback (most recent call last): File "/usr/local/bin/at2", line 8, in sys.exit(cli()) File "/opt/autotorrent2/lib/python3.10/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/opt/autotorrent2/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/opt/autotorrent2/lib/python3.10/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/autotorrent2/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/opt/autotorrent2/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, *kwargs) File "/opt/autotorrent2/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), args, **kwargs) File "/opt/autotorrent2/lib/python3.10/site-packages/autotorrent/main.py", line 487, in add torrent = parse_torrent(torrent_data, utf8_compat_mode=db.utf8_compat_mode) File "/opt/autotorrent2/lib/python3.10/site-packages/autotorrent/utils.py", line 621, in parse_torrent tracker = tracker.decode() AttributeError: 'int' object has no attribute 'decode'