randydev commited on
Commit
e5b38e1
Β·
verified Β·
1 Parent(s): 65f4247

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -10
main.py CHANGED
@@ -198,12 +198,11 @@ async def searchhub(client: Client, message: Message):
198
  pro = await message.reply_text("Processing.....")
199
  if query in not_allowed:
200
  return await pro.edit_text("I don't understand, can you help me?")
201
- user_status = check_expiration(user_id)
202
- if user_status["expired"] and not user_status["free_mode"]:
203
- await pro.edit_text("Your session has expired, please renew or activate free mode.")
204
- return
205
  try:
206
- protect_content = not user_status["free_mode"]
 
 
 
207
  response = await api.x_search(query=query)
208
  if response is None:
209
  return await pro.edit_text("nothing found gay")
@@ -254,12 +253,10 @@ async def porno_download(client: Client, message: Message):
254
  if not link.startswith("https://www.xnxx.com/"):
255
  return await message.reply_text("invalid link.")
256
  pro = await message.reply_text("Processing.....")
257
- user_status = check_expiration(user_id)
258
- if user_status["expired"] and not user_status["free_mode"]:
259
- await pro.edit_text("Your session has expired, please renew or activate free mode.")
260
- return
261
  try:
262
- protect_content = not user_status["free_mode"]
 
 
263
  file_path, thumb, _ = await api.x_download(url=link, is_stream=True)
264
  upload_text = f"**⬆️ π–΄π—‰π—…π—ˆπ–Ίπ–½π—‚π—‡π—€ video ...**"
265
  await pro.edit_text(upload_text)
 
198
  pro = await message.reply_text("Processing.....")
199
  if query in not_allowed:
200
  return await pro.edit_text("I don't understand, can you help me?")
 
 
 
 
201
  try:
202
+ protect_content = user_status["expired"] and not user_status["free_mode"]
203
+ if protect_content:
204
+ await message.reply("Your free mode has expired. Sending protected content.")
205
+
206
  response = await api.x_search(query=query)
207
  if response is None:
208
  return await pro.edit_text("nothing found gay")
 
253
  if not link.startswith("https://www.xnxx.com/"):
254
  return await message.reply_text("invalid link.")
255
  pro = await message.reply_text("Processing.....")
 
 
 
 
256
  try:
257
+ protect_content = user_status["expired"] and not user_status["free_mode"]
258
+ if protect_content:
259
+ await message.reply("Your free mode has expired. Sending protected content.")
260
  file_path, thumb, _ = await api.x_download(url=link, is_stream=True)
261
  upload_text = f"**⬆️ π–΄π—‰π—…π—ˆπ–Ίπ–½π—‚π—‡π—€ video ...**"
262
  await pro.edit_text(upload_text)