Spaces:
Running
Running
nothere990
commited on
Commit
·
a89d595
1
Parent(s):
971927c
changed list to str
Browse files
main.py
CHANGED
@@ -860,7 +860,7 @@ async def xnxx_search(
|
|
860 |
"publish_date": x.publish_date,
|
861 |
"views": x.views,
|
862 |
"link": x.content_url,
|
863 |
-
"thumb": x.thumbnail_url
|
864 |
})
|
865 |
return SuccessResponse(
|
866 |
status="True",
|
@@ -891,7 +891,7 @@ async def xnxx_download(link: str):
|
|
891 |
"publish_date": response.publish_date,
|
892 |
"views": response.views,
|
893 |
"link": response.content_url,
|
894 |
-
"thumb": response.thumbnail_url
|
895 |
}
|
896 |
}
|
897 |
)
|
|
|
860 |
"publish_date": x.publish_date,
|
861 |
"views": x.views,
|
862 |
"link": x.content_url,
|
863 |
+
"thumb": x.thumbnail_url[0] if isinstance(x.thumbnail_url, list) and len(x.thumbnail_url) > 0 else None
|
864 |
})
|
865 |
return SuccessResponse(
|
866 |
status="True",
|
|
|
891 |
"publish_date": response.publish_date,
|
892 |
"views": response.views,
|
893 |
"link": response.content_url,
|
894 |
+
"thumb": response.thumbnail_url[0] if isinstance(response.thumbnail_url, list) and len(response.thumbnail_url) > 0 else None
|
895 |
}
|
896 |
}
|
897 |
)
|