diff options
author | cedricbonhomme <devnull@localhost> | 2011-04-20 13:22:05 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2011-04-20 13:22:05 +0200 |
commit | eea6fb8e963a1aa26b1d6c7a9c089846b9109cae (patch) | |
tree | 51cb445909f38f75a87a89715c47b1ded97a7517 | |
parent | Release 2.7. Minor improvements. It is now possible to set a maximum number o... (diff) | |
download | newspipe-eea6fb8e963a1aa26b1d6c7a9c089846b9109cae.tar.gz newspipe-eea6fb8e963a1aa26b1d6c7a9c089846b9109cae.tar.bz2 newspipe-eea6fb8e963a1aa26b1d6c7a9c089846b9109cae.zip |
It is now possible to set the maximum number of articles per feed in the configuration file.
-rwxr-xr-x | cfg/pyAggr3g470r.cfg-sample | 1 | ||||
-rwxr-xr-x | utils.py | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cfg/pyAggr3g470r.cfg-sample b/cfg/pyAggr3g470r.cfg-sample index f7c73e14..d4b3d6e1 100755 --- a/cfg/pyAggr3g470r.cfg-sample +++ b/cfg/pyAggr3g470r.cfg-sample @@ -1,5 +1,6 @@ [global] sqlitebase = ./var/feed.db +max_nb_articles = 50 [mail] mail_from = pyAggr3g470r@no-reply.com mail_to = address_of_the_recipient@example.com @@ -62,14 +62,13 @@ config = ConfigParser.RawConfigParser() config.read("./cfg/pyAggr3g470r.cfg") path = os.path.abspath(".") sqlite_base = os.path.abspath(config.get('global', 'sqlitebase')) +MAX_NB_ARTICLES = int(config.get('global', 'max_nb_articles')) mail_from = config.get('mail','mail_from') mail_to = config.get('mail','mail_to') smtp_server = config.get('mail','smtp') username = config.get('mail','username') password = config.get('mail','password') -MAX_NB_ARTICLES = -1 - # regular expression to chech URL url_finders = [ \ re.compile("([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|(((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+)(:[0-9]*)?/[-A-Za-z0-9_\\$\\.\\+\\!\\*\\(\\),;:@&=\\?/~\\#\\%]*[^]'\\.}>\\),\\\"]"), \ |