Skip to content

Commit

Permalink
Fix instant crash on Windows instead of fallbacking to simpler menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Tina-otoge authored Oct 15, 2022
1 parent 2aff260 commit bd9f8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nyaadl/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from dataclasses import dataclass
from simple_term_menu import TerminalMenu

from .nyaa import Torrent

Expand Down Expand Up @@ -35,6 +34,7 @@ def ask(l: list[Torrent], prompt=False):


def show_term_menu(items: list[MenuItem]):
from simple_term_menu import TerminalMenu
cli_items = [
f'[{get_key(index)}] ' + item.title.replace('|', '\\|') + '|' + (
item.details.replace('|', '\\|')
Expand Down

0 comments on commit bd9f8f4

Please sign in to comment.