diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-05-25 17:26:11 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-05-25 17:26:11 +0200 |
commit | 3957b734ed75d8a53f1e195bf9126d8d8625832d (patch) | |
tree | ff744cfc1e3c34d1e1859d7ca5f6308c8ef8c451 /README.md | |
parent | e4c07414d077964613da5b7870a49f0882f703b1 (diff) |
Refactor stream input/output.
- Now uses pbs library to handle subprocesses.
- Removed -c option as not all plugins may be based on subprocesses.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -59,14 +59,14 @@ Livestreamer is also a library. Short example: streams = channel.get_streams() stream = streams["720p"] - stream.open() + fd = stream.open() while True: - data = stream.read(1024) + data = fd.read(1024) if len(data) == 0: break # do something with data - stream.close() + fd.close() |