diff options
author | cedricbonhomme <devnull@localhost> | 2012-05-28 10:30:38 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-05-28 10:30:38 +0200 |
commit | 0edfe757fef5faf31aa00a7df7477ef261b5b1e6 (patch) | |
tree | 499153186565484f73a5153bb8e9e722eef26e21 /source | |
parent | Now using SafeConfigParser. (diff) | |
download | newspipe-0edfe757fef5faf31aa00a7df7477ef261b5b1e6.tar.gz newspipe-0edfe757fef5faf31aa00a7df7477ef261b5b1e6.tar.bz2 newspipe-0edfe757fef5faf31aa00a7df7477ef261b5b1e6.zip |
Only use the URL of article for the QRCode.
Diffstat (limited to 'source')
-rwxr-xr-x | source/pyAggr3g470r.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 17cfb549..9ce14db5 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -464,12 +464,10 @@ class Root: if not os.path.isfile("./var/qrcode/" + article_id + ".png"): # QR Code generation try: - if len(utils.clear_string(description)) > 4296: - raise Exception() - f = qr.QRUrl(url = utils.clear_string(description)) + f = qr.QRUrl(url = article["article_link"]) f.make() except: - f = qr.QRUrl(url = article["article_link"]) + f = qr.QRUrl(url = "URL too long.") f.make() f.save("./var/qrcode/"+article_id+".png") |