Using Non-RSS Private Trackers with Flexget

Got any great tips or tricks you're dying to share with the rest of the world? Then please post them here.
They don't have to be specifically related to building a media server but please do try to keep them suitably "geeky".
iamgregg
Member
Member
Posts: 2
Joined: January 25th, 2012, 3:34 am

Using Non-RSS Private Trackers with Flexget

Postby iamgregg » January 26th, 2012, 6:44 pm

This is something I had a little trouble with at first, but I eventually got it working so I thought I'd share it here.

First, you'll need to install Mechanize as a Flexget dependency in order to use the Form Login plugin. For me this was as easy as navigating to my FlexGet directory and running easy_install mechanize. However, I'm new to Linux and installed it on a seedbox where most the hard work was already done for me. I'm sure Ian could assist with that further if you have trouble.

This is a sample config, with personal and tracker info removed.

Code: Select all

privatetracker:
  form:
    #This is the URL to your tracker's login page #
    url: http://privatetracker.com/login.php
    # Your Username and Password #
    username: user
    password: pass

  html:
    # The URL to your tracker's browse page. If you're able to set up default browse categories, I'd do so. #
    url: http://privatetracker.com/browse.php
    # Here, you want to specify the field that has the actual torrent name to filter by. The format is <a href="url" title="title">link</a> #
    title_from: title

  # This will be the most complicated part. Usually when you follow through links on the browse page your taken to the torrent details. We want to redirect that to the actual download link using the urlrewrite plugin. #
  urlrewrite:
    privatetracker:
      regexp: http://privatetracker.com/details/(?P<id>\d+)
      format: http://privatetracker.com/download/\g<id>


The most difficult thing in this example will be the URL Rewrite. I know it took me a few goes before I fully understood it. If you're having trouble, the folks over at FlexGet are probably better equipped to help you than I am.

Also a word of warning. If your tracker doesn't have an RSS feed or IRC announce, this may be by design as they don't like everyone snatching torrents minutes after release. Make sure it isn't explicitly against the rules and even so, use at your own risk.

User avatar
Ian
Moderator
Posts: 751
Joined: January 1st, 2011, 8:00 am

Re: Using Non-RSS Private Trackers with Flexget

Postby Ian » January 29th, 2012, 12:20 am

Nice one, thanks for sharing. :thumbup:

Ian.


Return to “Tips 'n' Tricks”