Commit 5b0aa21c authored by Björn Guth's avatar Björn Guth

fixed bug in qrreader.py

parent 999640e8
...@@ -113,7 +113,7 @@ tee name=t ! queue ! autovideosink t. ...@@ -113,7 +113,7 @@ tee name=t ! queue ! autovideosink t.
qr = symbol.data qr = symbol.data
print(qr) print(qr)
if qr.find('http://fsmpi.rwth-aachen.de/lip/view/') >= 0: if qr.find('http://fsmpi.rwth-aachen.de/lip/view/') >= 0:
os.system('firefox -new-tab '+url) os.system('firefox -new-tab '+qr)
elif qr.find('pk: ') >= 0: elif qr.find('pk: ') >= 0:
pk = string.split(string.split(qr,'%')[0],': ')[1] pk = string.split(string.split(qr,'%')[0],': ')[1]
os.system('firefox -new-tab http://fsmpi.rwth-aachen.de/lip/view/' + pk + '+0') os.system('firefox -new-tab http://fsmpi.rwth-aachen.de/lip/view/' + pk + '+0')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment