Commit 5d18ffbb authored by echel0n's avatar echel0n
Browse files

Fixed issues with verifying torrent metadata

parent 53aa1b8d
# Changelog
- * 214acbf - 2017-11-08: Updated bt cache urls and method for verifying data from them
- * 07c1b0f - 2017-11-08: Fixed issues with verifying torrent metadata
- * 53aa1b8 - 2017-11-08: Updated bt cache urls and method for verifying data from them
- * a6240ce - 2017-11-08: Misc typo corrections brought over from previous code refactoring
- * d21a0b7 - 2017-11-08: Fixed search issues for HDTorrents provider
- * 253e942 - 2017-11-08: Fixed search issues with ThePirateBay torrent provider
......
......@@ -748,6 +748,9 @@ class TorrentProvider(GenericProvider):
# adds public torrent trackers to content
if result.content:
decoded_data = bencode.bdecode(result.content)
if not decoded_data.get('announce-list'):
decoded_data[b'announce-list'] = []
for tracker in trackers_list:
if tracker not in decoded_data['announce-list']:
decoded_data['announce-list'].append([str(tracker)])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment