Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def search_anime(keyword: str):
|
|
| 59 |
results.append({
|
| 60 |
"title": title_elem.text.strip() if title_elem else None,
|
| 61 |
"url": title_elem["href"] if title_elem else None,
|
| 62 |
-
"thumbnail": thumb_elem
|
| 63 |
})
|
| 64 |
|
| 65 |
return {"keyword": keyword, "results": results}
|
|
|
|
| 59 |
results.append({
|
| 60 |
"title": title_elem.text.strip() if title_elem else None,
|
| 61 |
"url": title_elem["href"] if title_elem else None,
|
| 62 |
+
"thumbnail": thumb_elem.get("src") if thumb_elem else None
|
| 63 |
})
|
| 64 |
|
| 65 |
return {"keyword": keyword, "results": results}
|