fix: пропал декоратор @app.post(/api/add-torrent), follow_redirects в tmdb-proxy
- Возвращён @app.post('/api/add-torrent') — был съеден при вставке
proxy-torrent-download, из-за чего кнопка 'Добавить в клиент' всегда
возвращала 404
- tmdb-proxy /proxy-torrent: добавлен follow_redirects=True — rutracker
и kinozal отдают 302 перед .torrent файлом
This commit is contained in:
parent
a5497eef26
commit
127060d023
2 changed files with 4 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ async def proxy_torrent(url: str = Query(..., description="URL .torrent файл
|
|||
async with httpx.AsyncClient(timeout=30.0) as client:
|
||||
try:
|
||||
logger.info(f"Proxying .torrent download: {url}")
|
||||
response = await client.get(url, timeout=30.0)
|
||||
response = await client.get(url, timeout=30.0, follow_redirects=True)
|
||||
response.raise_for_status()
|
||||
return Response(
|
||||
content=response.content,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue