parent
1b7fdad6a8
commit
3ba74649f6
5
morss.py
5
morss.py
|
@ -351,6 +351,11 @@ def Fill(item, cache, feedurl='/', fast=False):
|
||||||
cache.set(item.link, 'error-http')
|
cache.set(item.link, 'error-http')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
if con.info().maintype != 'text':
|
||||||
|
log('non-text page')
|
||||||
|
cache.set(item.link, 'error-type')
|
||||||
|
return True
|
||||||
|
|
||||||
out = readability.Document(data, url=con.url).summary(True)
|
out = readability.Document(data, url=con.url).summary(True)
|
||||||
|
|
||||||
if countWord(out) > max(count_content, count_desc) > 0:
|
if countWord(out) > max(count_content, count_desc) > 0:
|
||||||
|
|
Loading…
Reference in New Issue