Example #1
0
    def __init__(self, options):
        self._logger = logging.getLogger("sd4tvh")  # type: logging.Logger

        self._encoding = u"utf-8"  # type: str

        self._sd = SchedulesDirect(options.username, options.password)  # type: SchedulesDirect

        self._status = None  # type: Status

        self._output_path = options.output_path  # type: str

        self._days = options.days  # type: int

        self._hdhomerun_ip = options.hdhomerun  # type: str

        self._enable_filter = options.filter  # type: bool

        self._filter_path = options.filter_path  # type: str

        self._channels_path = options.channels_path  # type: str

        self._episode_title_in_description = False  # type: bool

        self._content_rating_preference_order = \
            [u"Motion Picture Association of America", u"USA Parental Rating", u"Canadian Parental Rating"]
Example #2
0
#!/usr/bin/python