Skip to content

Commit

Permalink
Fixed: At least one problem introduced with 0.2.221/0.0.222: Download…
Browse files Browse the repository at this point in the history
…ing NZBs failed. See #639
  • Loading branch information
[email protected] authored and [email protected] committed Jul 21, 2017
1 parent 5da3917 commit 5832d34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# NZB Hydra changelog

----------
### 0.2.223
Fixed: At least one problem introduced with 0.2.221/0.0.222: Downloading NZBs failed. See [#639](https://github.com/theotherp/nzbhydra/pull/639).

### 0.2.222
Fixed: Results with special characters in titles would cause error (mostly torrents). See [#634](https://github.com/theotherp/nzbhydra/pull/634).

Expand Down
2 changes: 1 addition & 1 deletion nzbhydra/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def search(search_request):
logger.info("Skipping result with missing data: %s" % result)
continue
try:
searchResultId = hashlib.sha1(str(indexer) + result.indexerguid.encode('ascii', 'ignore').decode("utf-8")).hexdigest()
searchResultId = hashlib.sha1(str(indexer.indexer.id) + result.indexerguid.encode('ascii', 'ignore').decode("utf-8")).hexdigest()
tryGetOrCreateSearchResultDbEntry(searchResultId, indexer.indexer.id, result)
result.searchResultId = searchResultId
search_results.append(result)
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.222
0.2.223

0 comments on commit 5832d34

Please sign in to comment.