aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-23 22:46:06 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-23 22:46:06 +0200
commit84a935a1d475dee021402e5fb74c645ea43709d0 (patch)
treea629f40635c749d8b40a111639cb076aad60c157 /README.md
parent27cb39360357e41bfaa8a5667708898294e5127d (diff)
Make the library more thread safe.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index e82d3a2..7144428 100644
--- a/README.md
+++ b/README.md
@@ -60,9 +60,10 @@ Using livestreamer as a library
-------------------------------
Livestreamer is also a library. Short example:
- import livestreamer
+ from livestreamer import *
url = "http://twitch.tv/day9tv"
+ livestreamer = Livestreamer()
channel = livestreamer.resolve_url(url)
streams = channel.get_streams()