Check-in [9cff8f85d7]
Overview
| Comment: | Catch unset time prior queueing. Use new FeaturePlugin class. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
9cff8f85d79a9c842ea246a460bd984b |
| User & Date: | mario on 2017-01-05 21:21:24 |
| Other Links: | manifest | tags |
Context
|
2017-01-05
| ||
| 21:22 | Detect more absent variables/login, introduce UI delay on submission. check-in: 9eeccf1f29 user: mario tags: trunk | |
| 21:21 | Catch unset time prior queueing. Use new FeaturePlugin class. check-in: 9cff8f85d7 user: mario tags: trunk | |
| 21:20 | Default background color for channel.warn() calls. check-in: 197656d143 user: mario tags: trunk | |
Changes
Modified channels/timer.py from [3136ca6563] to [54b6176f28].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - + | # encoding: utf-8 # api: streamtuner2 # title: Recording timer # description: Schedules play/record events for bookmarked radio stations. # type: feature # category: hook # depends: kronos, action >= 1.1.1 |
| ︙ | |||
34 35 36 37 38 39 40 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | - + - - - - - - + - - - - - + | import action import copy import re # timed events (play/record) within bookmarks tab |
| ︙ | |||
104 105 106 107 108 109 110 | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | - + |
# close dialog,get data
def add_timer(self, *w):
timespec = self.parent.timer_value.get_text()
# basic check for consistency
if not re.match("^(\w{2,3}|[*,;+])+\s+(\d+:\d+)\s*((\.\.+|-+)\s*(\d+:\d+))?\s+(record|play)", timespec):
|
| ︙ | |||
151 152 153 154 155 156 157 | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | + - - - + + + + + - + |
# which action
if row[self.timefield].find("rec")>=0:
activity, action_method = "record", self.record
else:
activity, action_method = "play", self.play
# add
if days and time and activity:
|
| ︙ |