Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

select_titles Improved readability #7

@CodeName393

Description

@CodeName393

Currently, select_titles is not readable and inconvenient because I can't know the name of the episode when I need to know it.

Image

So, I suggest a code that improves readability as below.

Image
        if select_titles and type(titles)==Series:
            console.print(Padding(Rule(f"[rule.text]\nSelect Titles Option\n"), (1, 2)))
            
            beaupy_titles = [
                f"{i+1}. {t.title} - S{t.season:02}E{t.number:02} - {t.name}"
                for i, t in enumerate(titles)
            ]
            
            selected_idx = select_multiple(
                beaupy_titles,
                preprocessor=lambda val: f"[rgb(205,214,244)]{val}[/rgb(205,214,244)]",
                minimal_count=1,
                page_size=8,
                pagination=True,
                return_indices=True,
                
            )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions