diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-08-24 02:38:16 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-08-24 02:38:16 +0200 |
commit | 8545ee9aec203c0fcbeb64810022a3018e1590d4 (patch) | |
tree | 1def028b5c6decc7007468b0d5cc81859b8626ec | |
parent | 93af278d6170cb38eeb189fe8deb957b98d20876 (diff) |
Update README with URL to docs.
-rw-r--r-- | README.md | 20 | ||||
-rw-r--r-- | src/livestreamer/__init__.py | 3 |
2 files changed, 3 insertions, 20 deletions
@@ -58,24 +58,6 @@ A example file: Using livestreamer as a library ------------------------------- -Livestreamer is also a library. Short example: - from livestreamer import * - - url = "http://twitch.tv/day9tv" - livestreamer = Livestreamer() - channel = livestreamer.resolve_url(url) - streams = channel.get_streams() - - stream = streams["720p"] - fd = stream.open() - - while True: - data = fd.read(1024) - if len(data) == 0: - break - - # do something with data - - fd.close() +http://livestreamer.readthedocs.org/ diff --git a/src/livestreamer/__init__.py b/src/livestreamer/__init__.py index 0f50dea..2b28a3e 100644 --- a/src/livestreamer/__init__.py +++ b/src/livestreamer/__init__.py @@ -10,7 +10,8 @@ import imp class Livestreamer(object): """ - A Livestreamer session is used to keep track of plugins, options, log settings. + A Livestreamer session is used to keep track of plugins, + options and log settings. """ |