aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-05-28 10:30:38 +0200
committercedricbonhomme <devnull@localhost>2012-05-28 10:30:38 +0200
commit0edfe757fef5faf31aa00a7df7477ef261b5b1e6 (patch)
tree499153186565484f73a5153bb8e9e722eef26e21 /source
parentNow using SafeConfigParser. (diff)
downloadnewspipe-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-xsource/pyAggr3g470r.py6
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")
bgstack15