Fixing feed finder py3 issue.

This commit is contained in:
Samuel Clay 2021-03-24 20:28:20 -04:00
parent b5714fe596
commit 2b2cbefee4

View file

@ -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)