Opened 10 years ago

Closed 10 years ago

#2030 closed patch (Fixed)

Magnet link support in autoadd plugin

Reported by: monstermunchkin 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 monstermunchkin 10 years ago.
0002-Multiple-Magnet-links-support-in-autoadd-plugin.patch (3.3 KB) - added by monstermunchkin 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by monstermunchkin

comment:1 follow-up: Changed 10 years ago by Cas

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?

comment:2 in reply to: ↑ 1 Changed 10 years ago by monstermunchkin

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 Changed 10 years ago by Cas

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

comment:4 Changed 10 years ago by Cas

Added to 1.3-stable: 6bc3968ba, bbeb11b1e

comment:5 Changed 10 years ago by Cas

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.