flexget.plugins.input.from_piratebay module#

class flexget.plugins.input.from_piratebay.FromPirateBay[source]#

Bases: object

Return torrent listing from piratebay api.

url: <piratebay api mirror, for example: https://apibay.org or http://piratebayztemzmv.onion>
category: <str|int>. Accept a category name or ID.
list: <top|top48h|recent>
rank: <all|user|member|trusted|vip|helper|moderator|supermod> Minimum rank of torrent uploader

Example:

from_piratebay:
  url: https://apibay.org
  category: HD - Movies
  list: top
  rank: all

OR:

from_piratebay:
  category: HD - Movies
static info_hash_to_magnet(info_hash, name)[source]#
Parameters:
Return type:

str

json_to_entry(json_result)[source]#
Parameters:

json_result (dict)

Return type:

Entry

on_task_input(task, config)[source]#
schema = {'additionalProperties': False, 'properties': {'category': {'oneOf': [{'enum': ['All', 'Audio', 'Music', 'Audio books', 'Sound clips', 'FLAC', 'Audio Other', 'Video', 'Movies', 'Movies DVDR', 'Music videos', 'Movie clips', 'TV shows', 'Video Handheld', 'HD - Movies', 'HD - TV shows', '3D', 'Video Other', 'Applications', 'App Windows', 'App Mac', 'App UNIX', 'App Handheld', 'App IOS (iPad/iPhone)', 'App Android', 'App Other OS', 'Games', 'Game PC', 'Game Mac', 'Game PSx', 'Game XBOX360', 'Game Wii', 'Game Handheld', 'Game IOS (iPad/iPhone)', 'Game Android', 'Game Other', 'Porn', 'Porn Movies', 'Porn Movies DVDR', 'Porn Pictures', 'Porn Games', 'Porn HD - Movies', 'Porn Movie clips', 'Porn Other', 'Other', 'E-books', 'Comics', 'Pictures', 'Covers', 'Physibles', 'Other Other'], 'type': 'string'}, {'type': 'integer'}]}, 'list': {'default': 'top', 'enum': ['top', 'top48h', 'recent'], 'type': 'string'}, 'query': {'type': ['string']}, 'rank': {'default': 'all', 'enum': ['all', 'user', 'member', 'trusted', 'vip', 'helper', 'moderator', 'supermod'], 'type': 'string'}, 'url': {'default': 'https://apibay.org', 'format': 'url', 'type': 'string'}}, 'required': ['list'], 'type': 'object'}#
flexget.plugins.input.from_piratebay.register_plugin()[source]#