Opened 13 years ago

Closed 13 years ago

#2030 closed patch (Fixed)

Magnet link support in autoadd plugin

Reported by: Thomas Hipp Owned by:
Priority: trivial Milestone: 1.3.4
Component: Plugin Version: master
Keywords: Cc:

Description

This patch adds magnet link support to the autoadd plugin. It checks the watch folders for .magnet files, which should contain a valid magnet link, and adds them.

Attachments (2)

0001-Magnet-link-support-in-autoadd-plugin.patch (4.3 KB ) - added by Thomas Hipp 13 years ago.
0002-Multiple-Magnet-links-support-in-autoadd-plugin.patch (3.3 KB ) - added by Thomas Hipp 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Calum, 13 years ago

Thanks for this was literally just thinking this plugin should support this concept after seeing a forum post.

You have chosen a single file per magnet link, do you have a script that converts magnet links to files? Also do your changes support multiple magnet links in one .magnet file?

in reply to:  1 comment:2 by Thomas Hipp, 13 years ago

Replying to Cas:

You have chosen a single file per magnet link, do you have a script that converts magnet links to files?

The reason I chose one file per magnet link was that it required very little code modification. The options (renaming, copying and deleting) for .torrent files would also apply to .magnet files without making any changes. I don't have a script which converts magnet links to files since I don't know if and how that works (yet).

Also do your changes support multiple magnet links in one .magnet file?

My solution for multiple magnet links in a single .magnet file is to check for files containing more than one link and creating a new file for each of them. This is done in a separate loop before adding any torrents. I've provided an additional patch for this.

comment:3 by Calum, 13 years ago

We need a patch against 1.3-stable to include in 1.3.4 release.

comment:4 by Calum, 13 years ago

Added to 1.3-stable: 6bc3968ba, bbeb11b1e

comment:5 by Calum, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.