Extended attributes such as seeders/leechers not being set?
victorhooi opened this issue · 3 comments
victorhooi commented
The comments in rarbgapi.py
mention a bunch of extra attributes which are quite useful (seeders, leechers, ranked etc.)
However, they don't seem to exist on the torrent objects I'm pulling back.
Do you know when these are meant to be set?
Or the meaning of "brief" and "extended" are in the docstring for the Torrent class in rarbgapi.py?
verybada commented
For now, you should set format_='json_extened' and access them via torrent._raw
>>> torrents = client.search(format_='json_extended', search_string='radius')
to>>> torrent = torrents[0]
>>> print(torrent._raw['seeders'])
1
>>> torrent._raw
{'title': 'Radius.2017.1080p.BluRay.REMUX.MPEG-2.DTS-HD.MA.5.1-FGT', 'category': 'Movies/BD Remux', 'download': 'magnet:?xt=urn:btih:b603c74d5d48104fc49cfc8c710394708a6ca13a&dn=Radius.2017.1080p.BluRay.REMUX.MPEG-2.DTS-HD.MA.5.1-FGT&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce&tr=udp%3A%2F%2F9.rarbg.me%3A2710&tr=udp%3A%2F%2F9.rarbg.to%3A2710&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce', 'seeders': 1, 'leechers': 5, 'size': 15401877040, 'pubdate': '2019-03-03 14:09:40 +0000', 'episode_info': {'imdb': 'tt6097798', 'tvrage': None, 'tvdb': None, 'themoviedb': '436274'}, 'ranked': 1, 'info_page': 'https://torrentapi.org/redirect_to_info.php?token=jp7k6hyqzl&p=1_7_7_9_7_0_1__b603c74d5d'}
verybada commented
I'll revise interface of torrent class
AndydeCleyre commented
We still have to specify in order to access 'format_': 'json_extended'
torrent.size
, right?
EDIT: extended_response=True
, now, I see.