Revert "Don't get page with 0 comment"
This reverts commit 4a5456b152.
This commit was here to bypass a bug of dlfp rss Atom.
The bug is fixed and the commit can be reverted.
Reference : http://linuxfr.org/suivi/855
This commit is contained in:
parent
85d46363a6
commit
9bd7346261
2 changed files with 3 additions and 5 deletions
|
|
@ -133,10 +133,8 @@ class DLFP(BaseBrowser):
|
|||
|
||||
def get_hash(self, url):
|
||||
self.location(url)
|
||||
if self.page.document.xpath('//entry'):
|
||||
return hashlib.md5(lxml.etree.tostring(self.page.document)).hexdigest()
|
||||
else:
|
||||
return None
|
||||
myhash = hashlib.md5(lxml.etree.tostring(self.page.document)).hexdigest()
|
||||
return myhash
|
||||
|
||||
def get_content(self, _id):
|
||||
url, _id = self.parse_id(_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue