Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion netdisco/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""Constants of services that can be discovered."""

BELKIN_WEMO = "belkin_wemo"
DLNA = "DLNA"
DLNA_DMS = "DLNA_DMS"
DLNA_DMR = "DLNA_DMR"
GOOGLE_CAST = "google_cast"
PHILIPS_HUE = "philips_hue"
PMS = 'plex_mediaserver'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ class Discoverable(SSDPDiscoverable):

def get_entries(self):
"""Get all the DLNA service uPnP entries."""
return self.find_by_st("urn:schemas-upnp-org:device:MediaServer:1") + \
self.find_by_st("urn:schemas-upnp-org:device:MediaRenderer:1")
return self.find_by_st("urn:schemas-upnp-org:device:MediaRenderer:1") + \
self.find_by_st("urn:schemas-upnp-org:device:MediaRenderer:2") + \
self.find_by_st("urn:schemas-upnp-org:device:MediaRenderer:3")
13 changes: 13 additions & 0 deletions netdisco/discoverables/DLNA_DMS.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""Discover DLNA services."""
from . import SSDPDiscoverable


class Discoverable(SSDPDiscoverable):
"""Add support for discovering DLNA services."""

def get_entries(self):
"""Get all the DLNA service uPnP entries."""
return self.find_by_st("urn:schemas-upnp-org:device:MediaServer:1") + \
self.find_by_st("urn:schemas-upnp-org:device:MediaServer:2") + \
self.find_by_st("urn:schemas-upnp-org:device:MediaServer:3") + \
self.find_by_st("urn:schemas-upnp-org:device:MediaServer:4")