diff --git a/data/interfaces/brink/config.html b/data/interfaces/brink/config.html index 7ce73c8e..5e7aa91a 100644 --- a/data/interfaces/brink/config.html +++ b/data/interfaces/brink/config.html @@ -187,7 +187,7 @@
+ NZBget+ + |
+ + |
|
+ Usually http://localhost:9092 + |
+ + |
|
+ Type the user name for NZBget + |
+ + |
|
+ Enter the password for NZBget + |
+ + |
| + Write the category label name from NZBget + | ++ |
Music Download Directory:- Full path to the directory where SAB downloads your music + Full path to the directory where SAB or NZBget downloads your music e.g. /Users/name/Downloads/music |
+
+ ||
+ NZBget:+ |
+ ||
+ NZBget Host:+ + usually http://localhost:9092 + |
+
+
+ NZBget Username:+ |
+ |
+ NZBget Password:+ |
+
+ NZBget Category:+ |
+ |
|
diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html
index 5fc7b026..7d219c5e 100644
--- a/data/interfaces/default/config.html
+++ b/data/interfaces/default/config.html
@@ -134,10 +134,33 @@
- Full path where SAB downloads your music. e.g. /Users/name/Downloads/music
+ Full path where SAB or NZBget downloads your music. e.g. /Users/name/Downloads/music
|
+
+ + + | |
+ NZBget:+ |
+ ||
+ NZBget Host:+ + usually http://localhost:9092 + |
+
+
+ NZBget Username:+ |
+ |
+ NZBget Password:+ |
+
+ NZBget Category:+ |
+ |
|
diff --git a/headphones/__init__.py b/headphones/__init__.py
index 6d555f48..d14e0232 100644
--- a/headphones/__init__.py
+++ b/headphones/__init__.py
@@ -128,6 +128,11 @@ SAB_PASSWORD = None
SAB_APIKEY = None
SAB_CATEGORY = None
+NZBGET_USERNAME = None
+NZBGET_PASSWORD = None
+NZBGET_CATEGORY = None
+NZBGET_HOST = None
+
NZBMATRIX = False
NZBMATRIX_USERNAME = None
NZBMATRIX_APIKEY = None
@@ -285,7 +290,7 @@ def initialize():
TORRENTBLACKHOLE_DIR, NUMBEROFSEEDERS, ISOHUNT, KAT, MININOVA, WAFFLES, WAFFLES_UID, WAFFLES_PASSKEY, \
RUTRACKER, RUTRACKER_USER, RUTRACKER_PASSWORD, WHATCD, WHATCD_USERNAME, WHATCD_PASSWORD, DOWNLOAD_TORRENT_DIR, \
LIBRARYSCAN, LIBRARYSCAN_INTERVAL, DOWNLOAD_SCAN_INTERVAL, SAB_HOST, SAB_USERNAME, SAB_PASSWORD, SAB_APIKEY, SAB_CATEGORY, \
- NZBMATRIX, NZBMATRIX_USERNAME, NZBMATRIX_APIKEY, NEWZNAB, NEWZNAB_HOST, NEWZNAB_APIKEY, NEWZNAB_ENABLED, EXTRA_NEWZNABS, \
+ NZBGET_USERNAME, NZBGET_PASSWORD, NZBGET_CATEGORY, NZBGET_HOST, NZBMATRIX, NZBMATRIX_USERNAME, NZBMATRIX_APIKEY, NEWZNAB, NEWZNAB_HOST, NEWZNAB_APIKEY, NEWZNAB_ENABLED, EXTRA_NEWZNABS, \
NZBSORG, NZBSORG_UID, NZBSORG_HASH, NEWZBIN, NEWZBIN_UID, NEWZBIN_PASSWORD, NZBSRUS, NZBSRUS_UID, NZBSRUS_APIKEY, NZBX, \
PREFERRED_WORDS, REQUIRED_WORDS, IGNORED_WORDS, \
LASTFM_USERNAME, INTERFACE, FOLDER_PERMISSIONS, ENCODERFOLDER, ENCODER_PATH, ENCODER, XLDPROFILE, BITRATE, SAMPLINGFREQUENCY, \
@@ -302,6 +307,7 @@ def initialize():
# Make sure all the config sections exist
CheckSection('General')
CheckSection('SABnzbd')
+ CheckSection('NZBget')
CheckSection('NZBMatrix')
CheckSection('Newznab')
CheckSection('NZBsorg')
@@ -407,6 +413,11 @@ def initialize():
SAB_APIKEY = check_setting_str(CFG, 'SABnzbd', 'sab_apikey', '')
SAB_CATEGORY = check_setting_str(CFG, 'SABnzbd', 'sab_category', '')
+ NZBGET_USERNAME = check_setting_str(CFG, 'NZBget', 'nzbget_username', '')
+ NZBGET_PASSWORD = check_setting_str(CFG, 'NZBget', 'nzbget_password', '')
+ NZBGET_CATEGORY = check_setting_str(CFG, 'NZBget', 'nzbget_category', '')
+ NZBGET_HOST = check_setting_str(CFG, 'NZBget', 'nzbget_host', '')
+
NZBMATRIX = bool(check_setting_int(CFG, 'NZBMatrix', 'nzbmatrix', 0))
NZBMATRIX_USERNAME = check_setting_str(CFG, 'NZBMatrix', 'nzbmatrix_username', '')
NZBMATRIX_APIKEY = check_setting_str(CFG, 'NZBMatrix', 'nzbmatrix_apikey', '')
@@ -742,6 +753,12 @@ def config_write():
new_config['SABnzbd']['sab_password'] = SAB_PASSWORD
new_config['SABnzbd']['sab_apikey'] = SAB_APIKEY
new_config['SABnzbd']['sab_category'] = SAB_CATEGORY
+
+ new_config['NZBget'] = {}
+ new_config['NZBget']['nzbget_username'] = NZBGET_USERNAME
+ new_config['NZBget']['nzbget_password'] = NZBGET_PASSWORD
+ new_config['NZBget']['nzbget_category'] = NZBGET_CATEGORY
+ new_config['NZBget']['nzbget_host'] = NZBGET_HOST
new_config['NZBMatrix'] = {}
new_config['NZBMatrix']['nzbmatrix'] = int(NZBMATRIX)
diff --git a/headphones/nzbget.py b/headphones/nzbget.py
new file mode 100644
index 00000000..cd0c3315
--- /dev/null
+++ b/headphones/nzbget.py
@@ -0,0 +1,84 @@
+# This file is part of Headphones.
+#
+# Headphones is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Headphones is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Headphones. If not, see | ||