diff options
author | cedricbonhomme <devnull@localhost> | 2010-07-23 13:20:42 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-07-23 13:20:42 +0200 |
commit | 4c6869e355cee0f5b1b338363168256f2e09047f (patch) | |
tree | f360d211e5f3e8ea900503b35c757a684cd26fd5 | |
parent | Minor improvement when a URL is too long for the QR Code generation. (diff) | |
download | newspipe-4c6869e355cee0f5b1b338363168256f2e09047f.tar.gz newspipe-4c6869e355cee0f5b1b338363168256f2e09047f.tar.bz2 newspipe-4c6869e355cee0f5b1b338363168256f2e09047f.zip |
Release 1.7. pyAggr3g470r generates QR codes with URL of articles. So you can read an article later on your smarphone (or share with friends).
-rwxr-xr-x | pyAggr3g470r.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index eb1597d2..205ac3ec 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -2,8 +2,8 @@ #-*- coding: utf-8 -*- __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 1.6 $" -__date__ = "$Date: 2010/07/08 $" +__version__ = "$Revision: 1.7 $" +__date__ = "$Date: 2010/07/23 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" @@ -369,7 +369,7 @@ class Root: if not os.path.isfile("./var/qrcode/"+article_id+".png"): # QR code generation try: - qr = PyQRNative.QRCode(15, PyQRNative.QRErrorCorrectLevel.L) + qr = PyQRNative.QRCode(6, PyQRNative.QRErrorCorrectLevel.L) qr.addData(article[3]) qr.make() im = qr.makeImage() @@ -969,4 +969,4 @@ if __name__ == '__main__': thread_watch_base = threading.Thread(None, root.watch_base_classic, None, ()) thread_watch_base.setDaemon(True) thread_watch_base.start() - cherrypy.quickstart(root, config=path)
\ No newline at end of file + cherrypy.quickstart(root, config=path) |