mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-24 18:40:03 +08:00
fix: collect api bug.
This commit is contained in:
@@ -135,7 +135,7 @@ async def download_collection(data: Bangumi, current_user=Depends(get_current_us
|
||||
if not current_user:
|
||||
raise UNAUTHORIZED
|
||||
with SeasonCollector() as collector:
|
||||
resp = collector.collect_season(data, data.rss_link[0])
|
||||
resp = collector.collect_season(data, data.rss_link)
|
||||
return u_response(resp)
|
||||
|
||||
|
||||
@@ -145,4 +145,5 @@ async def subscribe(data: Bangumi, current_user=Depends(get_current_user)):
|
||||
raise UNAUTHORIZED
|
||||
with SeasonCollector() as collector:
|
||||
resp = collector.subscribe_season(data)
|
||||
return u_response(resp)
|
||||
return u_response(resp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user