Update mediainfo_paste.py

This commit is contained in:
Yasir Aris M 2024-09-04 15:38:22 +07:00 committed by GitHub
parent 7d7c735db4
commit 9bc375c8f6
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: async def mediainfo_paste(text: str, title: str) -> str:
html_content = html_builder(title, text) html_content = html_builder(title, text)
URL = "https://yasirr.eu.org/mediainfo" URL = "https://yasirr.eu.org/mediainfo"
response = await fetch.post(URL, data={'text': html_content}) response = await fetch.post(URL, data={"content": html_content})
return ( return (
f"https://yasirr.eu.org/mediainfo-{json.loads(response.content)['key']}" f"https://yasirr.eu.org/mediainfo-{json.loads(response.content)['key']}"
) )