From 166c98fcce9548df9bdc8586570df6ed00ad71b7 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Mon, 19 Dec 2011 15:44:28 +0100 Subject: livestreamer.plugins.ownedtv: Always use first stream. --- src/livestreamer/plugins/ownedtv.py | 11 ++++++----- 1 file 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 -- cgit v1.2.3