Check-in [9febd83e03]
Overview
Comment: | Readd support for timer record durations 01:00-02:00, streamripper only. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
9febd83e03c22f25fba1aa9c3fb0c073 |
User & Date: | mario on 2015-11-10 23:25:47 |
Other Links: | manifest | tags |
Context
2015-11-10
| ||
23:26 | Add dependency. check-in: 02558ef729 user: mario tags: trunk | |
23:25 | Readd support for timer record durations 01:00-02:00, streamripper only. check-in: 9febd83e03 user: mario tags: trunk | |
2015-11-09
| ||
21:37 | Permit "Any" or "All" in time specifications (for all weekdays). check-in: 6402b2ce1d user: mario tags: trunk | |
Changes
Modified action.py from [31399c2ae9] to [96185346f2].
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | - + | # encoding: UTF-8 # api: streamtuner2 # type: functions # category: io # title: play/record actions # description: Starts audio applications, guesses MIME types for URLs |
︙ | |||
134 135 136 137 138 139 140 | 134 135 136 137 138 139 140 141 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 | - + + + - - + + | except: log.ERR("Command not found:", cmd) # Open help browser, streamtuner2 pages def help(*args): run("yelp /usr/share/doc/streamtuner2/help/") # Invokes player/recorder for stream url and format |
︙ |
Modified channels/timer.py from [42e8a3d71a] to [9fca69ef1b].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - - + + + | # # api: streamtuner2 # title: Recording timer # description: Schedules play/record events for bookmarked radio stations. # type: feature # category: hook # depends: kronos |
︙ | |||
180 181 182 183 184 185 186 187 188 | 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | + + + - + - - + - - + + | ) # action wrapper def record(self, row, *args, **kwargs): log.TIMER("TIMED RECORD", *args) # extra params # make streamripper record a timed broadcast duration = self.duration(row.get(self.timefield)) append = None if duration: _rec = conf.record.get("audio/*", "") |