aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-11-24 08:30:09 +0100
committercedricbonhomme <devnull@localhost>2011-11-24 08:30:09 +0100
commit063af2be093977287bd05c5cbd8c24e012822646 (patch)
treefda6142d3984504df9c9040235dab04830b1c9b4 /pyAggr3g470r.py
parentUpdated .hgsub (diff)
downloadnewspipe-063af2be093977287bd05c5cbd8c24e012822646.tar.gz
newspipe-063af2be093977287bd05c5cbd8c24e012822646.tar.bz2
newspipe-063af2be093977287bd05c5cbd8c24e012822646.zip
Only use the plain text version of articles for the generation of QR code (not the HTML version).
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 44fe3331..2ea63f9e 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -445,8 +445,8 @@ class Root:
pass
if not os.path.isfile("./var/qrcode/" + article_id + ".png"):
# QR Code generation
- if len(description) < 4296:
- f = qr.QRUrl(url = description)
+ if len(utils.clear_string(description)) < 4296:
+ f = qr.QRUrl(url = utils.clear_string(description))
else:
f = qr.QRUrl(url = article.article_link)
f.make()
bgstack15