aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/options.py
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-06-13 16:06:27 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-06-13 16:06:27 +0200
commit0b0be39ebf40379a6cc9262a2b8c54223cdba062 (patch)
treeb37cad9bc46170c7bfa15eabbca3a60223793a6a /src/livestreamer/options.py
parent04aae63fb01a6056558e16a0d149424fd073bc31 (diff)
Added global options module.
- Removed argument handlers from plugins and use options instead. - Removed arguments to stream.open() and use options instead. - Added rtmpdump option to override location manually.
Diffstat (limited to 'src/livestreamer/options.py')
-rw-r--r--src/livestreamer/options.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/livestreamer/options.py b/src/livestreamer/options.py
new file mode 100644
index 0000000..51bd30d
--- /dev/null
+++ b/src/livestreamer/options.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+options = {
+ "rtmpdump": None,
+ "errorlog": False,
+ "jtvcookie": None
+}
+
+def set(key, value):
+ options[key] = value
+
+def get(key):
+ if key in options:
+ return options[key]
+