pirata
pirata copied to clipboard
Ruby gem that provides an API for ThePirateBay torrent tracker. Viva il pirata!
When the domain supplied in Pirata::Config::BASE_URL is returning bad results, check if it is a 502 gateway error (usually through cloudfare) and give some sort of indication to the user.
Nokogiri is used minimally, but it is a huge drag due to native extensions (especially for first-time installers). Would be great to replace it with stdlib XML parsing or [Oga](https://github.com/YorickPeterse/oga)
Torrent HTML has links to group (e.g. "Audio") and category (e.g. "Music"). Existing `category` field has group name, this uses the larger number to get category for `category_num`.