From 41c4cdb97da5c602bdd5ba5a98ce1add6c2076a8 Mon Sep 17 00:00:00 2001 From: David Schug Date: Wed, 19 Mar 2014 21:44:17 +0100 Subject: [PATCH 1/4] Added an advanced settings section allows to add more groups to the list of allows news groups --- example.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example.conf b/example.conf index 981e0be..75760f9 100644 --- a/example.conf +++ b/example.conf @@ -134,3 +134,8 @@ LOGGING = False # Where you want logs to go (leave empty to put in leechr dir) LOGDIR = "" + +### Advanced Settings ### + +# Add more groups to the list of allowed groups +ALLOWED_GROUPS = ALLOWED_GROUPS + ["alt.binaries.boneless", "alt.binaries.etc"] From 93bea47f69725cec7f7bee886f6add05b3ca4d5b Mon Sep 17 00:00:00 2001 From: David Schug Date: Wed, 19 Mar 2014 21:45:09 +0100 Subject: [PATCH 2/4] option to modify the search engine list per default it is commented --- example.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example.conf b/example.conf index 75760f9..589ab0b 100644 --- a/example.conf +++ b/example.conf @@ -139,3 +139,6 @@ LOGDIR = "" # Add more groups to the list of allowed groups ALLOWED_GROUPS = ALLOWED_GROUPS + ["alt.binaries.boneless", "alt.binaries.etc"] + +# Modify the list of used search engines +#SEARCH_MODULES = ["LOCALNEWZNAB", "NZBCC", "NZBCLUBCOM", "NZBXCO", "NEWSHOSTCOZA", "SICKBEARDCOM", "NZBSORG", "NZBNDXCOM"]#, "NZBINDEXNL", "BINSEARCHINFO"] # In order of preference From aec71ae24569ec8279984b3a2abe5e1a69ab139c Mon Sep 17 00:00:00 2001 From: David Schug Date: Wed, 19 Mar 2014 21:46:43 +0100 Subject: [PATCH 3/4] added a map which allows to define additional scores implemented the processing of the map to the scoring routine --- example.conf | 4 ++++ main.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/example.conf b/example.conf index 589ab0b..3f374c4 100644 --- a/example.conf +++ b/example.conf @@ -142,3 +142,7 @@ ALLOWED_GROUPS = ALLOWED_GROUPS + ["alt.binaries.boneless", "alt.binaries.etc"] # Modify the list of used search engines #SEARCH_MODULES = ["LOCALNEWZNAB", "NZBCC", "NZBCLUBCOM", "NZBXCO", "NEWSHOSTCOZA", "SICKBEARDCOM", "NZBSORG", "NZBNDXCOM"]#, "NZBINDEXNL", "BINSEARCHINFO"] # In order of preference + +# This map allows to modify the ranking of results. +# Standard rank is 0 and 720p will be ranked internally with +100 +#SCORE = {"aac2.0":-50} diff --git a/main.py b/main.py index c1dc963..6665090 100644 --- a/main.py +++ b/main.py @@ -730,6 +730,9 @@ def create_score(line): if "web-dl" in line: score += 20 if "hdtv" in line: score += 10 if "efnet" in line: score += 1 # efnet group posts are generally good + for key, value in SCORE.iteritems(): + if key in line: + score += value return score From 0e74558f492785f50ed363c740156de838ddb0ee Mon Sep 17 00:00:00 2001 From: David Schug Date: Wed, 19 Mar 2014 21:57:09 +0100 Subject: [PATCH 4/4] added Cosmos: A Space-Time Odyssey to helpers.dat --- helpers.dat | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers.dat b/helpers.dat index 7c1e6ba..80982c3 100644 --- a/helpers.dat +++ b/helpers.dat @@ -63,6 +63,7 @@ u'60 Minutes (US)':['60 Minutes'], u"Archer (2009)":["Archer"], u"The Beast (2009)":["The Beast"], u"The Colony (US)":["The Colony"], +u"Cosmos: A Space-Time Odyssey":["Cosmos A Space Time Odyssey"], u"CSI: Crime Scene Investigation":["CSI"], u"CSI: NY":["CSI NY", "CSI New York"], u"Dragon's Den (UK)":["Dragons Den"],