From a78f38c1740a44fd90544d2bba41213eacfb4535 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sun, 13 Nov 2022 09:39:20 +0530 Subject: [PATCH 1/3] Update changelog for v0.6.0 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6002f6237..d90e7f1e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v0.6.0 +Released 13 November 2022 + +Highlights: +* Updated to python 3 + +The full list of commits can be found [here](https://github.com/rembo10/headphones/compare/v0.5.20...v0.6.0). + ## v0.5.20 Released 15 October 2021 From c7bc8528689475417c914cbb8fbffc202db4de32 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sun, 26 Nov 2023 14:30:29 +0530 Subject: [PATCH 2/3] Update changelog for v0.6.1 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d90e7f1e1..79556c154 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v0.6.1 +Released 26 November 2023 + +Highlights: +* Dependency updates to work with > Python 3.11 + +The full list of commits can be found [here](https://github.com/rembo10/headphones/compare/v0.6.0...v0.6.1). + ## v0.6.0 Released 13 November 2022 From d2ec43bb196d89ae10074e448a315315d495b746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Hautin?= <3902243+Mikaciu@users.noreply.github.com> Date: Sun, 5 Feb 2023 21:13:41 +0100 Subject: [PATCH 3/3] feat(tpb): some TPB proxies changed the HTML structure --- headphones/searcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index e4762373e..959388b06 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -1761,7 +1761,7 @@ def set_proxy(proxy_url): # Pirate Bay if headphones.CONFIG.PIRATEBAY: provider = "The Pirate Bay" - tpb_term = term.replace("!", "").replace("'", " ") + tpb_term = term.replace("!", "").replace("'", " ").replace(" ", "%20") # Use proxy if specified if headphones.CONFIG.PIRATEBAY_PROXY_URL: @@ -1793,6 +1793,8 @@ def set_proxy(proxy_url): # Process content if data: rows = data.select('table tbody tr') + if not rows: + rows = data.select('table tr') if not rows: logger.info("No results found from The Pirate Bay using term: %s" % tpb_term)