diff options
author | cedricbonhomme <devnull@localhost> | 2010-02-05 13:10:45 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-02-05 13:10:45 +0100 |
commit | 6c559d487f96a85194e432248a4055945157ef82 (patch) | |
tree | 280f02bb7cab24786e6d6f226f72be680e50e26d /feedgetter.py | |
parent | Release 0.5. Added : a link _Fetch all feeds_ manually (when you want, withou... (diff) | |
download | newspipe-6c559d487f96a85194e432248a4055945157ef82.tar.gz newspipe-6c559d487f96a85194e432248a4055945157ef82.tar.bz2 newspipe-6c559d487f96a85194e432248a4055945157ef82.zip |
Unread articles are now in bold (new field in the SQLite database). New tabs for articles's description are opened with the _rel=noreferrer_ option in order to separates processes (useful with Chromium).
Diffstat (limited to 'feedgetter.py')
-rw-r--r-- | feedgetter.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/feedgetter.py b/feedgetter.py index a16585d8..b65a25e9 100644 --- a/feedgetter.py +++ b/feedgetter.py @@ -44,7 +44,8 @@ class FeedGetter(object): self.c.execute('''create table if not exists rss_feed (article_date text, article_title text, \ article_link text PRIMARY KEY, article_description text, \ - feed_title text, feed_site_link text)''') + feed_title text, feed_site_link text, \ + article_readed text)''') self.conn.commit() self.c.close() @@ -110,13 +111,14 @@ class FeedGetter(object): article_id = sha256_hash.hexdigest() try: - self.c.execute('insert into rss_feed values (?,?,?,?,?,?)', (\ + self.c.execute('insert into rss_feed values (?,?,?,?,?,?,?)', (\ datetime(*article.updated_parsed[:6]), \ article.title.encode('utf-8'), \ article.link.encode('utf-8'), \ description, \ a_feed.feed.title.encode('utf-8'), \ - a_feed.feed.link.encode('utf-8'))) + a_feed.feed.link.encode('utf-8'), \ + "0")) except sqlite3.IntegrityError: pass |