Index: channels/timer.py ================================================================== --- channels/timer.py +++ channels/timer.py @@ -3,11 +3,11 @@ # title: Recording timer # description: Schedules play/record events for bookmarked radio stations. # type: feature # category: hook # depends: kronos -# version: 0.6 +# version: 0.7 # config: - # priority: optional # support: unsupported # # Provides an internal timer, to configure recording and playback times/intervals @@ -167,13 +167,13 @@ return 0 # no limit # action wrapper def play(self, row, *args, **kwargs): action.play( - url = row["url"], + row = row, audioformat = row.get("format","audio/mpeg"), - listformat = row.get("listformat","href"), + source = row.get("listformat","href") ) # action wrapper def record(self, row, *args, **kwargs): log.TIMER("TIMED RECORD", *args) @@ -185,15 +185,15 @@ else: append = "" # start recording action.record( - url = row["url"], + row = row, audioformat = row.get("format","audio/mpeg"), - listformat = row.get("listformat","href"), - append = append, + source = row.get("listformat","href") + #append = append, ) def test(self, row, *args, **kwargs): log.TEST("KRONOS", row)