diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-06-13 16:06:27 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-06-13 16:06:27 +0200 |
commit | 0b0be39ebf40379a6cc9262a2b8c54223cdba062 (patch) | |
tree | b37cad9bc46170c7bfa15eabbca3a60223793a6a /src/livestreamer/options.py | |
parent | 04aae63fb01a6056558e16a0d149424fd073bc31 (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.py | 15 |
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] + |