Skip to content
Merged
Changes from all commits
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
9 changes: 6 additions & 3 deletions plexapi/gdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@


class GDM:
"""Base class to discover GDM services."""
"""Base class to discover GDM services.

Atrributes:
entries (List<dict>): List of server and/or client data discovered.
"""

def __init__(self):
self.entries = []
self.last_scan = None

def scan(self, scan_for_clients=False):
"""Scan the network."""
Expand All @@ -35,7 +38,7 @@ def find_by_content_type(self, value):
"""Return a list of entries that match the content_type."""
self.scan()
return [entry for entry in self.entries
if value in entry['data']['Content_Type']]
if value in entry['data']['Content-Type']]

def find_by_data(self, values):
"""Return a list of entries that match the search parameters."""
Expand Down