Models¶
Events¶
See also
-
controllers.models.events.
EVENT_FIELD_MAP
= {'B': 'start_time', 'C': 'current_time', 'D': 'duration', 'E': 'longinfo', 'I': 'id', 'N': 'service_name', 'R': 'service_reference', 'S': 'shortinfo', 'T': 'title', 'n': 'shortservice_name'}¶ Event Field Map
-
class
controllers.models.events.
EventDict
(raw_data, flag_string=None)[source]¶ Event data container object
>>> dd_in = (123, 1506020400, 120*60, 1506020440, "DASDING Sprechstunde", None, None, "1:0:2:6F37:431:A401:FFFF0000:0:0:0:", "DASDING") # NOQA >>> sed = EventDict(dd_in) >>> sed['id'] 123 >>> sed['start_time'] 1506020400 >>> sed['duration'] 7200
-
controllers.models.events.
FLAGS_ALL
= 'BDEINRST'¶ Event Flags without Current Time Field
-
controllers.models.events.
FLAGS_FULL
= 'BCDEINRST'¶ Event Flags including Current Time Field
-
controllers.models.events.
FLAGS_WEB
= 'IBDCTSERN'¶ Event Flags as used in
controllers.web
-
controllers.models.events.
FLAG_BEGIN
= 'B'¶ Begin
-
controllers.models.events.
FLAG_CURRENT_TIME
= 'C'¶ Current Time
-
controllers.models.events.
FLAG_DURATION
= 'D'¶ Duration
-
controllers.models.events.
FLAG_ITEM_ID
= 'I'¶ ID
-
controllers.models.events.
FLAG_LONGINFO
= 'E'¶ Long Event Information
-
controllers.models.events.
FLAG_SERVICE_NAME
= 'N'¶ Service Name
-
controllers.models.events.
FLAG_SERVICE_REFERENCE
= 'R'¶ Service Reference
-
controllers.models.events.
FLAG_SHORTINFO
= 'S'¶ Short Event Information
-
controllers.models.events.
FLAG_SHORT_SERVICE_NAME
= 'n'¶ Short Service Name
-
controllers.models.events.
FLAG_TITLE
= 'T'¶ Event Title
-
controllers.models.events.
KEY_DURATION
= 'duration'¶ constant for event duration key
-
controllers.models.events.
KEY_ID
= 'id'¶ constant for event ID key
-
controllers.models.events.
KEY_LONGINFO
= 'longinfo'¶ constant for event longinfo key
-
controllers.models.events.
KEY_SERVICE_NAME
= 'service_name'¶ constant for event’s service name key
-
controllers.models.events.
KEY_SERVICE_REFERENCE
= 'service_reference'¶ constant for event’s service reference key
-
controllers.models.events.
KEY_SHORTINFO
= 'shortinfo'¶ constant for event shortinfo key
-
controllers.models.events.
KEY_START_TIME
= 'start_time'¶ constant for event start time key
-
controllers.models.events.
KEY_TITLE
= 'title'¶ constant for event title key
-
controllers.models.events.
SERVICES_KEY_MAP
= {'begin_timestamp': 1, 'duration_sec': 2, 'id': 0, 'longdesc': 6, 'now_timestamp': 3, 'shortdesc': 5, 'sname': 8, 'sref': 7, 'title': 4}¶ Services Key Map
-
class
controllers.models.events.
ServicesEventDict
(raw_data, now_next_mode=False, mangle_html=True)[source]¶ Event data container object as used by EPG lookups in services.py
Deprecated since version 0.31: replaced by
EventDict
>>> dd_in = (123, 1506020400, 120*60, 1506020440, "DASDING Sprechstunde", None, None, "1:0:2:6F37:431:A401:FFFF0000:0:0:0:", "DASDING") # NOQA >>> sed = ServicesEventDict(dd_in) >>> sed['id'] 123 >>> sed['begin_timestamp'] 1506020400 >>> sed['duration_sec'] 7200
Timers¶
-
controllers.models.timers.
TIMER_ATTRIBUTES
= [('begin', 'start_time'), 'cancelled', ('description', 'shortinfo'), 'dirname', 'dirnameHadToFallback', 'disabled', 'dontSave', ('eit', 'id'), ('end', 'end_time'), 'first_try_prepare', 'is_timeshift', 'is_transformed_timeshift', 'justplay', 'justremind', 'log_entries', ('name', 'title'), 'prepare_time', 'pvrConvert', 'receiveRecordEvents', 'record_ecm', 'repeated', 'repeatedbegindate', 'start_prepare', 'state', 'tags', 'zapbeforerecord']¶ Timer attributes list Some attributes are using different keys in
TimerDict
objects thus attribute items may be atuple
.
-
controllers.models.timers.
TIMER_FAKE_BOOLEAN
= ['disabled', 'justplay', 'justremind', 'repeated', 'zapbeforerecord']¶ Timer attributes with values in (0, 1) actually representing a boolean value
-
controllers.models.timers.
TIMER_STATE_LOOKUP
= {0: 'waiting', 1: 'prepared', 2: 'running', 3: 'ended'}¶ Timer state lookup