Skip to content

Commit

Permalink
Fix issue #22 (#24)
Browse files Browse the repository at this point in the history
* Possible fix for #22

* Bumped versions

* Fixed missing config in the setup

* Fixed missing config in the setup

* Fix for #22
  • Loading branch information
Gabisonfire authored Apr 11, 2022
1 parent a9774e6 commit 0f7307b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
=== 1.3.1 ===
- Magnet url fix

=== 1.3 ===
- Transmission compatibility update

=== 1.2 ===
- Added the option to specify a file to search terms from.

Expand Down
2 changes: 2 additions & 0 deletions raincoat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def fetch_torrent_url(torrent):
try:
if shared.VERIFY:
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
if torrent.download.startswith('magnet:?xt=urn:btih:'):
return torrent.download
r = requests.get(torrent.download, allow_redirects=False, verify=shared.VERIFY)
logger.debug(f"Requesting {torrent.download}")
logger.debug(f"{str(r.status_code)}: {r.reason}")
Expand Down
2 changes: 1 addition & 1 deletion raincoat/shared.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Globals
def init():
global VERSION
VERSION = "1.3"
VERSION = "1.3.1"
global APP_NAME
APP_NAME = "Raincoat"
global TORRENTS
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run(self):

setuptools.setup(
name="raincoat-jackett",
version="1.3",
version="1.3.1",
author="Gabisonfire",
author_email="gabisonfire@github.com",
description="Raincoat is a tool to search torrents using Jackett and send them to your client.",
Expand Down

0 comments on commit 0f7307b

Please sign in to comment.