mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-28 06:43:30 +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)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class SeasonCollector(DownloadClient):
|
||||
if not link:
|
||||
torrents = st.search_season(bangumi)
|
||||
else:
|
||||
torrents = st.get_torrents(link, _filter="|".join(bangumi.filter))
|
||||
torrents = st.get_torrents(link, bangumi.filter.replace(",", "|"))
|
||||
if self.add_torrent(torrents, bangumi):
|
||||
logger.info(f"Collections of {bangumi.official_title} Season {bangumi.season} completed.")
|
||||
bangumi.eps_collect = True
|
||||
|
||||
@@ -32,7 +32,7 @@ export const apiDownload = {
|
||||
rss_link: bangumiData.rss_link.join(','),
|
||||
}
|
||||
const { data } = await axios.post<ApiSuccess>(
|
||||
'api/v1/rss/collection',
|
||||
'api/v1/rss/collect',
|
||||
postData
|
||||
);
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user