From: Oleg Broytman Date: Sun, 6 Apr 2025 12:08:47 +0000 (+0300) Subject: Fix(torrent): `encoding` is integer like `866` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;p=mc%2Fextfs.d.git Fix(torrent): `encoding` is integer like `866` Not a string like `'cp866'`. --- diff --git a/torrent b/torrent index 396a61e..a1f5d4b 100755 --- a/torrent +++ b/torrent @@ -396,7 +396,7 @@ def decode_torrent(): if encoding: encoding = encoding.decode('ascii') elif codepage: - encoding = codepage.decode('ascii') + encoding = str(codepage) else: for encoding in ('ascii', 'utf-8', default_encoding): try: