aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 21:48:43 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 21:48:43 +0200
commit00df563d08b9ab161b4be29e9ffdce0f1269bd16 (patch)
treedd5563a706a987d95b17b4f4339fb51f22d130b1 /pyaggr3g470r/feedgetter.py
parentDelete a feed and its articles. (diff)
downloadnewspipe-00df563d08b9ab161b4be29e9ffdce0f1269bd16.tar.gz
newspipe-00df563d08b9ab161b4be29e9ffdce0f1269bd16.tar.bz2
newspipe-00df563d08b9ab161b4be29e9ffdce0f1269bd16.zip
Articles's link are not unique.
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r--pyaggr3g470r/feedgetter.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index 96917fcf..2539124b 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -149,6 +149,10 @@ class FeedGetter(object):
parsed_url.fragment
])
+ exist = Article.query.filter(Article.link == nice_url).first()
+ if exist != None and exist.source.subscriber.id == self.user.id:
+ continue
+
description = ""
article_title = ""
try:
bgstack15