mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Fixing feed finder py3 issue.
This commit is contained in:
parent
b5714fe596
commit
2b2cbefee4
1 changed files with 2 additions and 2 deletions
|
@ -213,8 +213,8 @@ def tryBrokenRedirect(data):
|
|||
|
||||
def couldBeFeedData(data):
|
||||
data = data.lower()
|
||||
if data.count('<html'): return 0
|
||||
return data.count('<rss') + data.count('<rdf') + data.count('<feed')
|
||||
if data.count(b'<html'): return 0
|
||||
return data.count(b'<rss') + data.count(b'<rdf') + data.count(b'<feed')
|
||||
|
||||
def isFeed(uri):
|
||||
_debuglog('seeing if %s is a feed' % uri)
|
||||
|
|
Loading…
Add table
Reference in a new issue