This commit is contained in:
Yasir Aris M 2024-09-04 15:04:30 +07:00 committed by GitHub
parent 254a954e68
commit 7d7c735db4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,7 @@ def html_builder(title: str, text: str) -> str:
async def mediainfo_paste(text: str, title: str) -> str:
html_content = html_builder(title, text)
URL = "https://yasirr.eu.org/mediainfo"
response = await fetch.post(URL, data={'text': html_content, "title": title})
response = await fetch.post(URL, data={'text': html_content})
return (
f"https://yasirr.eu.org/mediainfo-{json.loads(response.content)['saved_id']}"
f"https://yasirr.eu.org/mediainfo-{json.loads(response.content)['key']}"
)