Update backend.py

Added refer to get around 403 forbidden error
This commit is contained in:
Arctic4161 2021-10-11 16:44:48 -05:00 committed by GitHub
parent 187983b348
commit fbf352579c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,7 @@ class Download:
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Language": "en-US,en;q=0.5", "Accept-Language": "en-US,en;q=0.5",
"Accept-Encoding": "gzip, deflate", "Accept-Encoding": "gzip, deflate",
"Referer": "https://gogoanime.pe/",
"Connection": "close", "Connection": "close",
} }
with req.get(url[1], headers=header, stream=True) as res: with req.get(url[1], headers=header, stream=True) as res: