From e8083089cd2eac3335fd9b1df0d258237ff60713 Mon Sep 17 00:00:00 2001 From: elParaguayo Date: Sun, 14 Aug 2016 13:53:55 +0100 Subject: [PATCH] League bugfix --- resources/lib/footballscores.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/footballscores.py b/resources/lib/footballscores.py index b7820db..70bfc08 100755 --- a/resources/lib/footballscores.py +++ b/resources/lib/footballscores.py @@ -879,7 +879,7 @@ def getLeagues(): # league = option.get("value")[12:] league = {} league["name"] = option.text.split("(")[0].strip() - league["id"] = option.get("value")[12:] + league["id"] = option.get("value")[12:].strip() if league["id"]: leagues.append(league) @@ -1011,7 +1011,7 @@ def getLeagues(self): leagues = form.findAll("option") for league in leagues: l = {} - if league.get("value") <> "": + if league.get("value") != "" and not league.get("value").endswith("competition-"): l["name"] = league.text l["id"] = league.get("value") leaguelist.append(l)