From 6897dab6477f0ce2e1ba05c6849272b772ea3ab7 Mon Sep 17 00:00:00 2001 From: fenduru Date: Sat, 9 Aug 2014 11:20:23 -0400 Subject: [PATCH] Give higher weight to freeleech torrents --- .../media/_base/providers/torrent/passthepopcorn.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/couchpotato/core/media/_base/providers/torrent/passthepopcorn.py b/couchpotato/core/media/_base/providers/torrent/passthepopcorn.py index 609ef2d4..40a55674 100644 --- a/couchpotato/core/media/_base/providers/torrent/passthepopcorn.py +++ b/couchpotato/core/media/_base/providers/torrent/passthepopcorn.py @@ -64,6 +64,10 @@ class Base(TorrentProvider): torrentdesc += ' HQ' if self.conf('prefer_golden'): torrentscore += 5000 + if 'FreeleechType' in torrent: + torrentdesc += ' Freeleech' + if self.conf('prefer_freeleech'): + torrentscore += 7000 if 'Scene' in torrent and torrent['Scene']: torrentdesc += ' Scene' if self.conf('prefer_scene'): @@ -223,6 +227,14 @@ config = [{ 'default': 1, 'description': 'Favors Golden Popcorn-releases over all other releases.' }, + { + 'name': 'prefer_freeleech', + 'advanced': True, + 'type': 'bool', + 'label': 'Prefer Freeleech', + 'default': 1, + 'description': 'Favors torrents marked as freeleech over all other releases.' + }, { 'name': 'prefer_scene', 'advanced': True,