aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-09-08 11:04:47 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-09-08 11:04:47 +0200
commit9f1120df8e76e90368e888d1f5791defc7204d2f (patch)
treeee778e394f8446a2482d126c177d86459a2925f9 /source/feedgetter.py
parentdetect_url_erros() now uses the proxy. (diff)
downloadnewspipe-9f1120df8e76e90368e888d1f5791defc7204d2f.tar.gz
newspipe-9f1120df8e76e90368e888d1f5791defc7204d2f.tar.bz2
newspipe-9f1120df8e76e90368e888d1f5791defc7204d2f.zip
Added a function which opens a URL safely.
Diffstat (limited to 'source/feedgetter.py')
-rwxr-xr-xsource/feedgetter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/feedgetter.py b/source/feedgetter.py
index a27a068c..6be8b28d 100755
--- a/source/feedgetter.py
+++ b/source/feedgetter.py
@@ -107,7 +107,7 @@ class FeedGetter(object):
Executed in a thread.
"""
- if utils.detect_url_errors([the_good_url]) == []:
+ if utils.open_url(the_good_url)[0] == True:
# if ressource is available add the articles in the base.
self.add_into_database(the_good_url, feed_original)
bgstack15