Fixed error when captcha is not found
This commit is contained in:
@@ -330,7 +330,8 @@ async def uprot(request: Request):
|
||||
async with AsyncSession(proxies = proxies) as client:
|
||||
image, cookies = await get_uprot_numbers(client)
|
||||
response = static.TemplateResponse('uprot.html',{'request':request,"image_url": image})
|
||||
response.set_cookie(key='PHPSESSID', value=cookies['PHPSESSID'],httponly=True)
|
||||
if cookies:
|
||||
response.set_cookie(key='PHPSESSID', value=cookies.get('PHPSESSID'),httponly=True)
|
||||
|
||||
return response
|
||||
@app.post("/uprot")
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@
|
||||
<div id="additionalText">
|
||||
<h2>Inserire i numeri in foto per abilitare la fonte MaxStream per la durata di un giorno<br> https://github.com/UrloMythus/MammaMia/</h2>
|
||||
<div class="captchaimg">
|
||||
<img src="{{ image_url }}" alt="captcha1">
|
||||
<img src="{{ image_url }}" alt="Failed to get the captcha">
|
||||
</div>
|
||||
<form id = 'form' action="/uprot" method="post">
|
||||
<input type="text" name="user_input" required>
|
||||
|
||||
Reference in New Issue
Block a user