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)