aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2011-12-19 15:44:28 +0100
committerGravatar Christopher Rosell <chrippa@tanuki.se>2011-12-19 15:44:28 +0100
commit166c98fcce9548df9bdc8586570df6ed00ad71b7 (patch)
treec345dedd25c37b667bfe953a7ca2dd9123645613 /src
parent480296354615632f6dcd1dae39d6addfa034f4a3 (diff)
livestreamer.plugins.ownedtv: Always use first stream.
Diffstat (limited to 'src')
-rw-r--r--src/livestreamer/plugins/ownedtv.py11
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