Skip to content

Commit

Permalink
chore: fix button formatting in custdl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xAmarnath committed May 4, 2024
1 parent 6702653 commit 089d1d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/custdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ async def series_x(e):

buttons = []
for season in seasons:
buttons.append([Button.inline(season["title"], data=f"season_{
series_id}_{season['season_id']}_{series["category"]}_{len(buttons)}")])
buttons.append([Button.inline(season["title"], data=f"season_{series_id}_{season['season_id']}_{series["category"]}_{len(buttons)}")])

buttons.append([Button.inline("Back", data="back")])

Expand All @@ -143,8 +142,7 @@ async def season_x(e):

buttons = []
for episode in episodes:
buttons.append([Button.inline(episode["title"], data=f"episode_{
series_id}_{season_id}_{episode['episode_id']}_{category}_{season_index}_{len(buttons)}")])
buttons.append([Button.inline(episode["title"], data=f"episode_{series_id}_{season_id}_{episode['episode_id']}_{category}_{season_index}_{len(buttons)}")])

buttons.append([Button.inline("Download All", data=f"download_all")])
buttons.append([Button.inline("Back", data=f"series_{series_id}")])
Expand Down

0 comments on commit 089d1d7

Please sign in to comment.