Update Parser.py

Strip-Anweisungen reduziert/optimiert
This commit is contained in:
Carsten Richter 2017-05-29 12:18:55 +02:00 committed by GitHub
parent 27a04c07e1
commit 1560d91586

View file

@ -19,11 +19,11 @@ def kodi(suchstring,a):
wert = (a[position + start:position2]) # gibt den Wert des Suchbegriffes aus
x=0
while wert.isalnum() is False and x<2:
wert = wert.strip("\"")
wert = wert.rstrip("}")
wert = wert.rstrip("]")
wert = wert.lstrip("[")
wert = wert.lstrip("{")
wert = wert.strip("\"}][{")
#wert = wert.rstrip("}")
#wert = wert.rstrip("]")
#wert = wert.lstrip("[")
#wert = wert.lstrip("{")
x=x+1
return wert