Skip to content

Commit

Permalink
update custdl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xAmarnath committed May 4, 2024
1 parent 7b52ee5 commit 89aba13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/custdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ async def episode_x(e):
src = await get_embed(episode_id, category, client)
if src is None:
return await e.edit("Failed to get source.")
tick_emoji = "✅"

await e.edit(f"**M3U8:** \n`{src['file']}`", buttons=[[Button.inline("Download", data=f"dl_{src['id']}_{category}_{season_index}_{episode_index}_{series_id}")]])
await e.edit(f"**Source Avaliable {tick_emoji}**\n\n**SUBS: {', '.join([sub['label'] for sub in src['subs']])}**",
buttons=[[Button.inline("Download", data=f"dl_{src['id']}_{category}_{season_index}_{episode_index}_{series_id}")],
[Button.inline("Back", data=f"season_{series_id}_{season_id}_{category}_{season_index}")]])
m3u8_cache[src["id"]] = src["file"]
import os, time

Expand Down

0 comments on commit 89aba13

Please sign in to comment.