Commit 49aeede267510962d2ac63a9b51cce31c0ca89cc

Updated Blog.get_timestamp() to reflect WordPress 2.8 changed (?); merged with MySpace override
feed.py
(8 / 10)
  
163163class Blog(Feed):
164164 entryClass = entry.BlogEntry
165165 def get_timestamp(self):
166 return int(time.mktime(self.feed.feed.updated_parsed))
166 if hasattr(self.feed, 'updated'):
167 return int(time.mktime(self.feed.updated))
168 elif hasattr(self.feed.feed, 'lastbuilddate'):
169 return int(time.mktime(time.strptime(self.feed.feed.lastbuilddate, '%a, %d %b %Y %H:%M:%S %Z')))
170 elif hasattr(self.feed.feed, 'updated_parsed'):
171 return int(time.mktime(self.feed.feed.updated_parsed))
172 else:
173 return int(time.time())
167174
168175class Comments(Feed):
169176 entryClass = entry.Comment
232232
233233class MySpaceBlog(Blog):
234234 entryClass = entry.MySpaceBlogEntry
235
236 """Myspace just can't follow a standard."""
237 def get_timestamp(self):
238 if hasattr(self.feed.feed, 'updated_parsed'):
239 return Blog.get_timestamp(self)
240 elif hasattr(self.feed.feed, 'lastbuilddate'):
241 return int(time.mktime(time.strptime(self.feed.feed.lastbuilddate, '%a, %d %b %Y %H:%M:%S %Z')))
242 else:
243 return int(time.time())
244235
245236class Twitter(MicroBlog):
246237 entryClass = entry.TwitterUpdate