fix: user update issue, tmdb leak poster issue.

This commit is contained in:
EstrellaXD
2023-09-23 22:32:57 +08:00
parent a54c1066fc
commit 6a73d9ec41
4 changed files with 9 additions and 3 deletions

View File

@@ -63,4 +63,4 @@ async def update_user(
httponly=True,
max_age=86400,
)
return {"access_token": token, "token_type": "bearer"}
return {"access_token": token, "token_type": "bearer", "message": "update success"}

View File

@@ -76,6 +76,8 @@ def tmdb_parser(title, language) -> TMDBInfo | None:
for s in info_content.get("seasons")
]
last_season, poster_path = get_season(season)
if poster_path is None:
poster_path = info_content.get("poster_path")
original_title = info_content.get("original_name")
official_title = info_content.get("name")
year_number = info_content.get("first_air_date").split("-")[0]

View File

@@ -19,4 +19,8 @@ def from_30_to_31():
bangumi.poster_link = f"https://{root_path}{bangumi.poster_link}"
db.bangumi.update_all(bangumis)
for rss in rss_pool:
db.add_rss(rss_link=rss)
if "mybangumi" in rss.lower():
aggregate = True
else:
aggregate = False
db.add_rss(rss_link=rss, aggregate=aggregate)

View File

@@ -8,7 +8,7 @@ export interface BangumiRule {
eps_collect: boolean;
filter: string[];
group_name: string;
id: number | null;
id: number;
official_title: string;
offset: number;
poster_link: string | null;