summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-08-05 16:01:44 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-08-05 16:01:44 +0200
commitf02c70d5de7912475cfa9cedc5826ec620872e5b (patch)
tree31bb9997f4274c214b832c97e3c9b8b6bfa40484
parentc7e1f0d3ded24324f1efa93bb3c7b234ca91f98b (diff)
fix 404 on updating feeds
-rw-r--r--bin/updater.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/updater.py b/bin/updater.py
index 16f0e44b0..c6a9b5d38 100644
--- a/bin/updater.py
+++ b/bin/updater.py
@@ -48,16 +48,17 @@ class UpdateThread(threading.Thread):
return
# call the update method of one feed
+ feed['feedId'] = feed['id']
+ del feed['id']
data = urllib.parse.urlencode(feed)
headers = {
'Content-type': 'application/json',
'Accept': 'text/plain'
}
url = '%s?%s' % (self.update_url, data)
- request = urllib.request.Request(url)
try:
- response = urllib.request.urlopen(request)
+ response = urllib.request.urlopen(url)
except urllib.error.HTTPError:
print('%s does not exist' % url)