mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-19 18:15:31 +01:00
Merge branch 'develop'
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user