Check-in [20cd77b794]
Overview
| Comment: | Add Windows support (taskkill instead of pkill) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
20cd77b7941084c7747108e65bfb4af8 |
| User & Date: | mario on 2016-11-08 20:01:44 |
| Other Links: | manifest | tags |
Context
|
2016-11-09
| ||
| 15:15 | Strip carriage return from plugin meta block, which causes field reading to fail on Windows. And use `empty_pixbuf` as fallback for uikit.pixbuf() in case the content isn't valid base64 still. check-in: 730e6dc9f1 user: mario tags: trunk | |
|
2016-11-08
| ||
| 20:01 | Add Windows support (taskkill instead of pkill) check-in: 20cd77b794 user: mario tags: trunk | |
|
2016-11-07
| ||
| 16:28 | Move reddit into distributed plugins, add some midi subreddits. check-in: 747bc65a0b user: mario tags: trunk | |
Changes
Modified contrib/record_stop.py from [2f78d04590] to [6675e32df1].
1 2 3 | # encoding: utf-8 # title: Stop button # description: Kills streamripper recording | | | > > > | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# encoding: utf-8
# title: Stop button
# description: Kills streamripper recording
# version: 0.2
# depends: streamtuner2 >= 2.1.9
# type: feature
# category: ui
#
# Displays the [X] STOP toolbar button, and hooks it to
# a streamripper kill switch.
import action
from config import log, conf
# Stop button
class record_stop(object):
module = __name__
# button + hook
def __init__(self, parent):
btn = parent.stop
btn.show()
btn.set_property("visible", True)
btn.set_property("visible_horizontal", True)
btn.connect("clicked", self.pkill_streamripper)
# stop recording
def pkill_streamripper(self, *x, **y):
if conf.windows:
action.run("taskkill -im streamripper.exe")
else:
action.run("pkill streamripper || pkill fPls")
|