Merge pull request #12 from Arctic4161/master

Fix Backend.py
This commit is contained in:
Karl0ss 2023-05-23 17:20:59 +01:00 committed by GitHub
commit 2fc41cfa56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,21 +187,7 @@ class gogoanime:
overwrite = overwrite_downloads overwrite = overwrite_downloads
dl = Downloader( dl = Downloader(
max_conn=max_concurrent_downloads(self.config["MaxConcurrentDownloads"]), max_conn=max_concurrent_downloads(self.config["MaxConcurrentDownloads"]),
overwrite=overwrite, overwrite=overwrite)
headers=dict(
[
(
"User-Agent",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36",
),
("authority", "gogo-cdn.com"),
(
"referer",
f"https://gogoanime.{self.config['CurrentGoGoAnimeDomain']}/",
),
]
),
)
for link in file_list: for link in file_list:
if link is not None: if link is not None: