Update Parser.py
Strip-Anweisungen reduziert/optimiert
This commit is contained in:
parent
27a04c07e1
commit
1560d91586
1 changed files with 5 additions and 5 deletions
10
Parser.py
10
Parser.py
|
|
@ -19,11 +19,11 @@ def kodi(suchstring,a):
|
||||||
wert = (a[position + start:position2]) # gibt den Wert des Suchbegriffes aus
|
wert = (a[position + start:position2]) # gibt den Wert des Suchbegriffes aus
|
||||||
x=0
|
x=0
|
||||||
while wert.isalnum() is False and x<2:
|
while wert.isalnum() is False and x<2:
|
||||||
wert = wert.strip("\"")
|
wert = wert.strip("\"}][{")
|
||||||
wert = wert.rstrip("}")
|
#wert = wert.rstrip("}")
|
||||||
wert = wert.rstrip("]")
|
#wert = wert.rstrip("]")
|
||||||
wert = wert.lstrip("[")
|
#wert = wert.lstrip("[")
|
||||||
wert = wert.lstrip("{")
|
#wert = wert.lstrip("{")
|
||||||
x=x+1
|
x=x+1
|
||||||
return wert
|
return wert
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue