diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2011-12-19 15:44:28 +0100 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2011-12-19 15:44:28 +0100 |
commit | 166c98fcce9548df9bdc8586570df6ed00ad71b7 (patch) | |
tree | c345dedd25c37b667bfe953a7ca2dd9123645613 /src | |
parent | 480296354615632f6dcd1dae39d6addfa034f4a3 (diff) |
livestreamer.plugins.ownedtv: Always use first stream.
Diffstat (limited to 'src')
-rw-r--r-- | src/livestreamer/plugins/ownedtv.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/livestreamer/plugins/ownedtv.py b/src/livestreamer/plugins/ownedtv.py index b203bb9..0b89745 100644 --- a/src/livestreamer/plugins/ownedtv.py +++ b/src/livestreamer/plugins/ownedtv.py @@ -70,11 +70,12 @@ class OwnedTV(Plugin): name = streamel.getAttribute("label").lower().replace(" ", "_") playpath = streamel.getAttribute("name") - streams[name] = { - "base": base, - "name": name, - "playpath": playpath - } + if not name in streams: + streams[name] = { + "base": base, + "name": name, + "playpath": playpath + } return streams |