Kylart / Nyaapi

Non-official api to access Nyaa.si and Nyaa.pantsu.cat (search, upload,...)
MIT License
108 stars 17 forks source link

Nyaa.si - torrent status #16

Closed Jaliborc closed 4 years ago

Jaliborc commented 4 years ago

Hey, if you add this single line to si/scrap.js after line 27, you can have the status of each torrent as well (defalut, sucess or danger).

  const result = {

  [...]

        seeders: _getChild(this, 6).text(),
        leechers: _getChild(this, 7).text(),
        completed: _getChild(this, 8).text(),
        status: $(this).attr('class'),
  }