aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-24 02:38:16 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-24 02:38:16 +0200
commit8545ee9aec203c0fcbeb64810022a3018e1590d4 (patch)
tree1def028b5c6decc7007468b0d5cc81859b8626ec
parent93af278d6170cb38eeb189fe8deb957b98d20876 (diff)
Update README with URL to docs.
-rw-r--r--README.md20
-rw-r--r--src/livestreamer/__init__.py3
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.
"""