Fix typo and cleanup log message
This commit is contained in:
parent
007f4b08b8
commit
4c16d1fd96
@ -244,7 +244,7 @@ def reconstitute(feed, entry):
|
|||||||
src_author = src.get('author_detail',{})
|
src_author = src.get('author_detail',{})
|
||||||
if (not author_detail or not author_detail.has_key('name')) and \
|
if (not author_detail or not author_detail.has_key('name')) and \
|
||||||
not src_author.has_key('name') and feed.feed.has_key('planet_name'):
|
not src_author.has_key('name') and feed.feed.has_key('planet_name'):
|
||||||
if src_author: src_author - src_author.__class__(src_author.copy())
|
if src_author: src_author = src_author.__class__(src_author.copy())
|
||||||
src['author_detail'] = src_author
|
src['author_detail'] = src_author
|
||||||
src_author['name'] = feed.feed['planet_name']
|
src_author['name'] = feed.feed['planet_name']
|
||||||
source(xsource, src, bozo, feed.version)
|
source(xsource, src, bozo, feed.version)
|
||||||
|
@ -159,6 +159,9 @@ def spiderFeed(feed, only_if_new=0):
|
|||||||
# process based on the HTTP status code
|
# process based on the HTTP status code
|
||||||
if data.status == 200 and data.has_key("url"):
|
if data.status == 200 and data.has_key("url"):
|
||||||
data.feed['planet_http_location'] = data.url
|
data.feed['planet_http_location'] = data.url
|
||||||
|
if feed == data.url:
|
||||||
|
log.info("Updating feed %s", feed)
|
||||||
|
else:
|
||||||
log.info("Updating feed %s @ %s", feed, data.url)
|
log.info("Updating feed %s @ %s", feed, data.url)
|
||||||
elif data.status == 301 and data.has_key("entries") and len(data.entries)>0:
|
elif data.status == 301 and data.has_key("entries") and len(data.entries)>0:
|
||||||
log.warning("Feed has moved from <%s> to <%s>", feed, data.url)
|
log.warning("Feed has moved from <%s> to <%s>", feed, data.url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user