From 63e998dfc249ed36f21461ba2aa09238f49577dd Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sat, 18 Feb 2023 22:41:52 +0000 Subject: [PATCH] Fix using recently updated torrent parser for py3 bytes. --- CHANGES.md | 7 ++++++- sickgear/search.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 137d2b4f..d86772e5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 3.27.6 (2023-02-18 20:10:00 UTC) +### 3.27.7 (2023-02-18 22:40:00 UTC) + +* Fix using recently updated torrent parser for py3 bytes + + +### 3.27.6 (2023-02-18 20:10:00 UTC) * Fix show view edit language * Fix TVDb image parsing diff --git a/sickgear/search.py b/sickgear/search.py index 7c26e8a8..fdaf3d37 100644 --- a/sickgear/search.py +++ b/sickgear/search.py @@ -789,7 +789,7 @@ def cache_torrent_file( try: import torrent_parser as tp - torrent_meta = tp.decode(torrent_content, use_ordered_dict=True) + torrent_meta = tp.decode(torrent_content, use_ordered_dict=True, errors='usebytes') except (BaseException, Exception): return