This commit is contained in:
jxxghp
2023-11-14 17:35:31 +08:00
parent 7921dcd86b
commit 42966c2537
4 changed files with 14 additions and 18 deletions

View File

@ -323,6 +323,17 @@ class Settings(BaseSettings):
return Path(self.DOWNLOAD_ANIME_PATH)
return self.SAVE_TV_PATH
@property
def GITHUB_HEADERS(self):
"""
Github请求头
"""
if self.GITHUB_TOKEN:
return {
"Authorization": f"Bearer {self.GITHUB_TOKEN}"
}
return {}
def __init__(self, **kwargs):
super().__init__(**kwargs)
with self.CONFIG_PATH as p: