aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/plugins/__init__.py
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-04-21 20:35:43 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-04-21 20:35:43 +0200
commite3b3bdf86e9e9921ce6c76e8dd587dbe0b41f33e (patch)
tree6f9ae0c3b56199b05c477baa82bb5218df3b5ba4 /src/livestreamer/plugins/__init__.py
parent0eb8969b0667fb641356a5734126b645aa211c0f (diff)
Make get_streams always return a dict.
Diffstat (limited to 'src/livestreamer/plugins/__init__.py')
-rw-r--r--src/livestreamer/plugins/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/livestreamer/plugins/__init__.py b/src/livestreamer/plugins/__init__.py
index a4e39cc..fe62179 100644
--- a/src/livestreamer/plugins/__init__.py
+++ b/src/livestreamer/plugins/__init__.py
@@ -23,15 +23,15 @@ class Plugin(object):
self.args = args
def get_streams(self):
- ranking = ['iphonelow', 'iphonehigh', '240p', '360p', '480p', '720p',
- 'hd', '1080p', 'live']
+ ranking = ["iphonelow", "iphonehigh", "240p", "360p", "480p", "720p",
+ "hd", "1080p", "live"]
streams = self._get_streams()
for rank in reversed(ranking):
if rank in streams:
- streams['best'] = streams[rank]
+ streams["best"] = streams[rank]
break
return streams
-
+
def _get_streams(self):
raise NotImplementedError