Check-in [5954812093]
Overview
Comment: | Needs proper signal disconnecting (overlaps with standard record function). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5954812093812c0fb959bd5b100564cc |
User & Date: | mario on 2015-11-12 22:30:52 |
Other Links: | manifest | tags |
Context
2015-11-14
| ||
21:47 | Fix `self.main` reference check-in: 79f29b975a user: mario tags: trunk | |
2015-11-12
| ||
22:30 | Needs proper signal disconnecting (overlaps with standard record function). check-in: 5954812093 user: mario tags: trunk | |
22:10 | Planning on JIT record function (streamripper in background). check-in: e7e8ee0da9 user: mario tags: trunk | |
Changes
Modified contrib/continuous_record.py from [5d34bb9446] to [8b1442273b].
1 2 3 | # encoding: utf-8 # title: Continuous/JIT record # description: Starts background recording on play, to allow saving current track | | | 1 2 3 4 5 6 7 8 9 10 11 | # encoding: utf-8 # title: Continuous/JIT record # description: Starts background recording on play, to allow saving current track # version: 0.0 # depends: streamtuner2 >= 2.1.9 # type: hook # config: # { name: jitrecord_ripper, type: select, value: streamtripper, select: streamripper|fpls, description: Background recording tool. } # { name: jitrecord_timeout, type: int, value: 15, description: Delete tracks after NN minutes. } # { name: jitrecord_target, type: str, value: "$HOME/Music", description: Where to save completed track. } # { name: jitrecord_tmp, type: str, value: "/tmp/streamtuner2/recording/", description: Temporary storeage. } |
︙ | ︙ | |||
63 64 65 66 67 68 69 70 71 72 | # start recording background process def play_start_recording(self, row, *x, **y): # exchange toolbar button self.rec.set_stock_id(gtk.STOCK_FLOPPY) self.rec.set_label("track") self.rec.connect("clicked", self.save_current) # check for temp directory tmp = conf.jitrecord_tmp | > | | | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | # start recording background process def play_start_recording(self, row, *x, **y): # exchange toolbar button self.rec.set_stock_id(gtk.STOCK_FLOPPY) self.rec.set_label("track") self.rec.connect("clicked", self.save_current) #self.rec.disconnect("clicked", self.parent.on_record_clicked) # check for temp directory tmp = conf.jitrecord_tmp if not os.path.exists(tmp): os.mkdir(tmp) # start streamripper action.run("pkill streamripper") action.run("streamripper %r -d %s" % (row["url"], conf.jitrecord_tmp)) # hook sched/kronos to look for outdated files pass # |