summaryrefslogtreecommitdiff
path: root/netdisco/discoverables/sabnzbd.py
diff options
context:
space:
mode:
Diffstat (limited to 'netdisco/discoverables/sabnzbd.py')
-rw-r--r--netdisco/discoverables/sabnzbd.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/netdisco/discoverables/sabnzbd.py b/netdisco/discoverables/sabnzbd.py
new file mode 100644
index 0000000..b2cb9e7
--- /dev/null
+++ b/netdisco/discoverables/sabnzbd.py
@@ -0,0 +1,13 @@
+"""Discover SABnzbd servers."""
+from . import MDNSDiscoverable
+
+
+class Discoverable(MDNSDiscoverable):
+ """Add support for discovering SABnzbd."""
+
+ def __init__(self, nd):
+ """Initialize the SABnzbd discovery."""
+ super(Discoverable, self).__init__(nd, '_http._tcp.local.')
+
+ def get_entries(self):
+ return self.find_by_device_name('SABnzbd on')