Skip to content

Commit

Permalink
Fix snatching for Xthor provider with Python 3 (#7103)
Browse files Browse the repository at this point in the history
* Fix snatching for Xthor provider with Python 3

* Update CHANGELOG.md
  • Loading branch information
medariox authored and p0psicles committed Sep 1, 2019
1 parent 9335bb5 commit d97b101
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Fixed charset on API v2 responses with plain text content ([#6931](https://github.com/pymedusa/Medusa/pull/6931))
- Fixed logger causing an exception in certain cases ([#6932](https://github.com/pymedusa/Medusa/pull/6932))
- Fixed testing Plex media server when using multiple hosts ([#6976](https://github.com/pymedusa/Medusa/pull/6976))
- Fixed snatching for Xthor provider with Python 3 ([#7103](https://github.com/pymedusa/Medusa/pull/7103))

-----

Expand Down
4 changes: 2 additions & 2 deletions medusa/providers/torrent/json/xthor.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def parse(self, data, mode):
if not all([title, download_url]):
continue

seeders = row.get('seeders')
leechers = row.get('leechers')
seeders = int(row.get('seeders'))
leechers = int(row.get('leechers'))

# Filter unseeded torrent
if seeders < self.minseed:
Expand Down

0 comments on commit d97b101

Please sign in to comment.