Closed newadventure079 closed 1 year ago
I threw in an exception logger, it'll show up in a release soon (and in master now)
Fixed in 1.2.3
@JohnDoee
There wasn't a ton more info outputted but it looks like the issue is Broken path elements found in torrent, try utf-8 compat mode
ERROR:autotorrent.__main__:489:Failed to parse torrent file
Traceback (most recent call last):
File "/var/services/homes/me/.autotorrent/lib/python3.8/site-packages/autotorrent/__main__.py", line 487, in add
torrent = parse_torrent(torrent_data, utf8_compat_mode=db.utf8_compat_mode)
File "/var/services/homes/me/.autotorrent/lib/python3.8/site-packages/autotorrent/utils.py", line 584, in parse_torrent
raise FailedToParseTorrentException(
autotorrent.exceptions.FailedToParseTorrentException: Broken path elements found in torrent, try utf-8 compat mode
Looking at the filelist in a torrent editor and on the tracker site, my guess is there's a special character it's puking on. The website has a filename with €“
. In the torrent editor, the same chars show up as ��
and in rutorrent, they show up as ??
Is it possible to add some encoding when parsing? Like utf-16
or utf-8 compat mode
-u, --utf8-compat-mode Try work around utf-8 errors, not recommended
A huge problem with bittorrent is that you can throw whatever you want into it, no rules here. If autotorrent can't decode it, it likely can't find the files on the disk to begin with.
Torrent sites aren't helping this problem along either as they ALSO just allow whatever garbage people can fit into a .torrent file.
Each client handles filename normalization differently, a feature not yet in autotorrent.
@Jerrk Thanks for pointing out that option. I forgot it existed. And thanks @JohnDoee for the explanation
FYI The --utf8-compat-mode
goes before the add
command. at2 --utf8-compat-mode add rtorrent
Can we get some more info on why at2 failed to parse torrent file? I ran at2 with the verbose flag and no additional info was outputted.