From c74e601f7df37a1722355bcc4bb02aac616b0250 Mon Sep 17 00:00:00 2001 From: xAmarnath <75058759+xAmarnath@users.noreply.github.com> Date: Sun, 5 May 2024 14:30:03 +0530 Subject: [PATCH] df --- modules/custdl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/custdl.py b/modules/custdl.py index bbe5925..2745f3c 100644 --- a/modules/custdl.py +++ b/modules/custdl.py @@ -205,8 +205,11 @@ async def episode_x(e): _season_index_f = "0" + season_index if len(season_index) == 1 else season_index _episode_index_f = "0" + episode_index if len(episode_index) == 1 else episode_index CAPTION += "**E{}S{}**\n\n".format(_episode_index_f, _season_index_f) + CAPTION += f"**Source Avaliable {tick_emoji}**\n\n**SUBS: {', '.join([sub['label'] for sub in src['subs']])}**" + if len(CAPTION > 1023): + CAPTION = f"**Source Avaliable {tick_emoji}**\n\n**SUBS: {', '.join([sub['label'] for sub in src['subs']])}**" - await e.edit(CAPTION+f"**Source Avaliable {tick_emoji}**\n\n**SUBS: {', '.join([sub['label'] for sub in src['subs']])}**", + await e.edit(CAPTION, 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