flexget.plugins.output.rtorrent_magnet module#

class flexget.plugins.output.rtorrent_magnet.PluginRtorrentMagnet[source]#

Bases: object

Process Magnet URI’s into rtorrent compatible torrent files.

Magnet URI’s will look something like this:

magnet:?xt=urn:btih:190F1ABAED7AE7252735A811149753AA83E34309&dn=URL+Escaped+Torrent+Name

rTorrent would expect to see something like meta-URL_Escaped_Torrent_Name.torrent

The torrent file must also contain the text:

d10:magnet-uri88:xt=urn:btih:190F1ABAED7AE7252735A811149753AA83E34309&dn=URL+Escaped+Torrent+Namee

This plugin will check if a download URL is a magnet link, and then create the appropriate torrent file.

Example:

rtorrent_magnet: ~/torrents/

on_task_output(task, config)[source]#
write_torrent_file(task, entry, path)[source]#
schema = {'format': 'path', 'type': 'string'}#
flexget.plugins.output.rtorrent_magnet.register_plugin()[source]#