|
6 | 6 | from beets.autotag import Recommendation |
7 | 7 | from beets.util import displayable_path |
8 | 8 | from beets.util.units import human_bytes, human_seconds_short |
9 | | -from beetsplug.bareasc import print_ |
10 | 9 |
|
11 | 10 | from .display import ( |
12 | 11 | disambig_string, |
@@ -415,8 +414,8 @@ def choose_candidate( |
415 | 414 | if singleton: |
416 | 415 | ui.print_("No matching recordings found.") |
417 | 416 | else: |
418 | | - print_(f"No matching release found for {itemcount} tracks.") |
419 | | - print_( |
| 417 | + ui.print_(f"No matching release found for {itemcount} tracks.") |
| 418 | + ui.print_( |
420 | 419 | "For help, see: " |
421 | 420 | "https://beets.readthedocs.org/en/latest/faq.html#nomatch" |
422 | 421 | ) |
@@ -461,17 +460,17 @@ def choose_candidate( |
461 | 460 | else: |
462 | 461 | metadata = ui.colorize("text_highlight_minor", metadata) |
463 | 462 | line1 = [index, distance, metadata] |
464 | | - print_(f" {' '.join(line1)}") |
| 463 | + ui.print_(f" {' '.join(line1)}") |
465 | 464 |
|
466 | 465 | # Penalties. |
467 | 466 | penalties = penalty_string(match.distance, 3) |
468 | 467 | if penalties: |
469 | | - print_(f"{' ' * 13}{penalties}") |
| 468 | + ui.print_(f"{' ' * 13}{penalties}") |
470 | 469 |
|
471 | 470 | # Disambiguation |
472 | 471 | disambig = disambig_string(match.info) |
473 | 472 | if disambig: |
474 | | - print_(f"{' ' * 13}{disambig}") |
| 473 | + ui.print_(f"{' ' * 13}{disambig}") |
475 | 474 |
|
476 | 475 | # Ask the user for a choice. |
477 | 476 | sel = ui.input_options(choice_opts, numrange=(1, len(candidates))) |
|
0 commit comments