From 00b70906464aaa7f44e004a0f187a2f7a2b7c9c6 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Fri, 13 Jul 2012 20:06:11 +0530 Subject: [PATCH 1/2] Added singles category for nzbmatrix searching --- headphones/searcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index e8147a77..95e14a5e 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -164,10 +164,13 @@ def searchNZB(albumid=None, new=False, losslessOnly=False): else: categories = "22" - # Search Audiobooks + # Search Audiobooks/Singles/etc if albums['Type'] == "Other": categories = "49" logger.info("Album type is audiobook/spokenword. Using audiobook category") + if albums['Type'] == "Single": + categories = "47" + logger.info("Album type is 'Single'. Using singles category") # For some reason NZBMatrix is erroring out/timing out when the term starts with a "The" right now # so we'll strip it out for the time being. This may get fixed on their end, it may not, but From 6d6b30a5c27cabf0895fcaf4d0f002d0235b28ba Mon Sep 17 00:00:00 2001 From: rembo10 Date: Fri, 13 Jul 2012 20:17:34 +0530 Subject: [PATCH 2/2] Fix to get the synoindex variable read on startup --- headphones/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headphones/__init__.py b/headphones/__init__.py index bea13250..f3bfc597 100644 --- a/headphones/__init__.py +++ b/headphones/__init__.py @@ -377,6 +377,8 @@ def initialize(): NMA_APIKEY = check_setting_str(CFG, 'NMA', 'nma_apikey', '') NMA_PRIORITY = check_setting_int(CFG, 'NMA', 'nma_priority', 0) + SYNOINDEX_ENABLED = bool(check_setting_int(CFG, 'Synoindex', 'synoindex_enabled', 0)) + MIRROR = check_setting_str(CFG, 'General', 'mirror', 'musicbrainz.org') CUSTOMHOST = check_setting_str(CFG, 'General', 'customhost', 'localhost') CUSTOMPORT = check_setting_int(CFG, 'General', 'customport', 5000)