Private GIT

Skip to content
Snippets Groups Projects
Commit 40cf9fa0 authored by Kfir Hadas's avatar Kfir Hadas Committed by miigotu
Browse files

Nyaa RSS update (#3793)

* Update keys based on latest RSS template

https://github.com/nyaadevs/nyaa/pull/140

* Flip and add comment
parent 9a0ff9a3
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,12 @@ class NyaaProvider(TorrentProvider): # pylint: disable=too-many-instance-attrib
if not all([title, download_url]):
continue
try:
seeders = try_int(curItem['nyaa:seeders'])
leechers = try_int(curItem['nyaa:leechers'])
torrent_size = curItem['nyaa:size']
info_hash = curItem['nyaa:infohash']
except KeyError: # Transition phase because of https://github.com/nyaadevs/nyaa/pull/140
seeders = try_int(curItem['seeders'])
leechers = try_int(curItem['leechers'])
torrent_size = curItem['size']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment