Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -523,6 +523,21 @@ async def xnxx_search(query: str):
|
|
523 |
randydev={"error": "Error fucking"}
|
524 |
)
|
525 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
526 |
@app.get("/akeno/xnxx-dl", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
527 |
async def xnxx_download(link: str):
|
528 |
try:
|
|
|
523 |
randydev={"error": "Error fucking"}
|
524 |
)
|
525 |
|
526 |
+
@app.get("/akeno/xvideosearch", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
527 |
+
async def xvideosearch(query: str):
|
528 |
+
try:
|
529 |
+
response = await api_tools_fix(name="xvideosearch", ok="q", query=query)
|
530 |
+
result = response.get("result", {})
|
531 |
+
return SuccessResponse(
|
532 |
+
status="True",
|
533 |
+
randydev={"results": result}
|
534 |
+
)
|
535 |
+
except:
|
536 |
+
return SuccessResponse(
|
537 |
+
status="False",
|
538 |
+
randydev={"error": "Error fucking"}
|
539 |
+
)
|
540 |
+
|
541 |
@app.get("/akeno/xnxx-dl", response_model=SuccessResponse, responses={422: {"model": SuccessResponse}})
|
542 |
async def xnxx_download(link: str):
|
543 |
try:
|