Update Akeno/plugins/pornhub.py
Browse files- Akeno/plugins/pornhub.py +5 -2
Akeno/plugins/pornhub.py
CHANGED
@@ -31,10 +31,13 @@ from Akeno.utils.scripts import progress
|
|
31 |
from config import *
|
32 |
from RyuzakiLib import PornoHub
|
33 |
|
|
|
|
|
34 |
async def pornosearch(query):
|
35 |
-
url = "https://randydev
|
36 |
headers = {"Content-Type": "application/json"}
|
37 |
data = {"query": query}
|
|
|
38 |
response = requests.get(url, params=data)
|
39 |
response_json = response.json()["randydev"]["results"]
|
40 |
return response_json
|
@@ -76,7 +79,7 @@ async def porno_search(client: Client, message: Message):
|
|
76 |
& ~filters.forwarded
|
77 |
)
|
78 |
async def porno_download(client: Client, message: Message):
|
79 |
-
api = PornoHub()
|
80 |
link = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
|
81 |
if not link:
|
82 |
return await message.reply_text("please link for pornohub.")
|
|
|
31 |
from config import *
|
32 |
from RyuzakiLib import PornoHub
|
33 |
|
34 |
+
ok = MY_API_KEY_API
|
35 |
+
|
36 |
async def pornosearch(query):
|
37 |
+
url = "https://private.randydev.my.id/akeno/xnxxsearch"
|
38 |
headers = {"Content-Type": "application/json"}
|
39 |
data = {"query": query}
|
40 |
+
headers = {"x-akeno-key", str(ok)}
|
41 |
response = requests.get(url, params=data)
|
42 |
response_json = response.json()["randydev"]["results"]
|
43 |
return response_json
|
|
|
79 |
& ~filters.forwarded
|
80 |
)
|
81 |
async def porno_download(client: Client, message: Message):
|
82 |
+
api = PornoHub(key=ok)
|
83 |
link = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
|
84 |
if not link:
|
85 |
return await message.reply_text("please link for pornohub.")
|