From 8545ee9aec203c0fcbeb64810022a3018e1590d4 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Fri, 24 Aug 2012 02:38:16 +0200 Subject: Update README with URL to docs. --- README.md | 20 +------------------- src/livestreamer/__init__.py | 3 ++- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index e63ad63..f669f97 100644 --- a/README.md +++ b/README.md @@ -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. """ -- cgit v1.2.3