diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-06-18 18:02:06 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-06-18 18:02:06 +0200 |
commit | ecb020250d89b6a25b9b6b4fadb33b585994e094 (patch) | |
tree | 0b5627dd994c5fea3888937c1f5feb56602557d2 /src/livestreamer/stream.py | |
parent | 48be679ec6cd31208c66e1d93cef213b0e44fce2 (diff) |
Use "rtmpdump.exe" on Windows.
Diffstat (limited to 'src/livestreamer/stream.py')
-rw-r--r-- | src/livestreamer/stream.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/livestreamer/stream.py b/src/livestreamer/stream.py index 486e620..a6aac3b 100644 --- a/src/livestreamer/stream.py +++ b/src/livestreamer/stream.py @@ -1,6 +1,6 @@ from livestreamer import options from livestreamer.utils import urlopen -from livestreamer.compat import str +from livestreamer.compat import str, is_win32 import os import pbs @@ -48,7 +48,7 @@ class RTMPStream(StreamProcess): def __init__(self, params): StreamProcess.__init__(self, params) - self.rtmpdump = options.get("rtmpdump") or "rtmpdump" + self.rtmpdump = options.get("rtmpdump") or (is_win32 and "rtmpdump.exe" or "rtmpdump") self.params["flv"] = "-" try: |