fix: collect api bug.

This commit is contained in:
EstrellaXD
2023-08-30 01:18:54 +08:00
parent 89cc0b89cf
commit e5af3d9924
3 changed files with 5 additions and 4 deletions

View File

@@ -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)