From 42fc9c5205b49573d65b2c49d3a666e07a5d1357 Mon Sep 17 00:00:00 2001 From: Hellow Date: Wed, 23 Nov 2022 23:44:25 +0100 Subject: [PATCH] added stuff to help command and set down max phoenetic distance added stuff to help command and set down max phoenetic distance --- src/music_kraken/__init__.py | 12 +++++++++++- src/music_kraken/utils/phonetic_compares.py | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/music_kraken/__init__.py b/src/music_kraken/__init__.py index e77ccdc..70c524c 100644 --- a/src/music_kraken/__init__.py +++ b/src/music_kraken/__init__.py @@ -32,13 +32,23 @@ def get_existing_genre(): def help_search_metadata(): msg = """ -- - - Type the command you want to execute - - - +- - - Available Options - - - .. - Previous Options (query_string) - Search for songs, albums, bands... (int) - Select an item from the search results d - Start the download h - Help q - Quit / Exit + +- - - How the Query works (examples) - - - +> #a +searches for the artist + +> #a #r +searches for the release (album) by the artist + +> #r Me #t +searches for the track from the release """ print(msg) diff --git a/src/music_kraken/utils/phonetic_compares.py b/src/music_kraken/utils/phonetic_compares.py index 034eb81..45a77d3 100644 --- a/src/music_kraken/utils/phonetic_compares.py +++ b/src/music_kraken/utils/phonetic_compares.py @@ -1,7 +1,7 @@ import jellyfish import string -TITLE_THRESHOLD_LEVENSHTEIN = 2 +TITLE_THRESHOLD_LEVENSHTEIN = 1 UNIFY_TO = " "