remove unsupported encoding method
This commit is contained in:
@@ -355,7 +355,7 @@ class RSSParser:
|
|||||||
def parse(self, fn: str):
|
def parse(self, fn: str):
|
||||||
try:
|
try:
|
||||||
if fn.find('://') > -1:
|
if fn.find('://') > -1:
|
||||||
header = {"Accept-Encoding": "gzip, deflate, br"}
|
header = {"Accept-Encoding": "gzip, deflate"}
|
||||||
re = requests.get(fn, headers=header)
|
re = requests.get(fn, headers=header)
|
||||||
re.encoding = 'utf8'
|
re.encoding = 'utf8'
|
||||||
if re.status_code == 200:
|
if re.status_code == 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user