File: tivo_dvr.py

package info (click to toggle)
python-netdisco 2.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 508 kB
  • sloc: python: 1,532; xml: 247; sh: 10; makefile: 8
file content (14 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Discover TiVo DVR devices providing the TCP Remote Protocol."""
from . import MDNSDiscoverable


class Discoverable(MDNSDiscoverable):
    """Add support for discovering TiVo Remote Protocol service."""

    def __init__(self, nd):
        """Initialize the discovery.

        Yields a dictionary with hostname, host and port along with a
        properties sub-dictionary with some device specific ids.
        """
        super(Discoverable, self).__init__(nd, '_tivo-remote._tcp.local.')