X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=data%2Fman%2Fsimadb_cli.1.xml;fp=data%2Fman%2Fsimadb_cli.1.xml;h=5448f862d17fa8f41adff99f1533f3e0f0e8be3f;hb=14a769add6d435a7ad7db4d36074dc79511af4e3;hp=0000000000000000000000000000000000000000;hpb=2d8874a64fcecb469981441a53e4547049f56f81;p=mpd-sima.git diff --git a/data/man/simadb_cli.1.xml b/data/man/simadb_cli.1.xml new file mode 100644 index 0000000..5448f86 --- /dev/null +++ b/data/man/simadb_cli.1.xml @@ -0,0 +1,409 @@ + + + + + + +]> + + + + + &dhutils; + &dhsection; + + + &dhutils; + &dhutils; is a command line interface editor for the sima user DB. + + + + &dhutils; + similarity_string + + + + + db_file + + + + + + mpd_host + + + mpd_port + + + + &dhutils; + artist + + db_file + + + + + + + &dhutils; + "main artist,similar artist" + + db_file + + + + + + + &dhutils; + + + db_file + + + + &dhutils; + + + db_file + + + + &dhutils; + + + db_file + + + + &dhutils; + + + + + artist_name + + + db_file + + + mpd_host + + + mpd_port + + + + &dhutils; + row_id + + db_file + + + + &dhutils; + + + db_file + + + + &dhutils; + + + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhutils; commands. + simadb_cli is a command line interface to get and edit users + similarities and blacklist database used with MPD_sima. The default + database file (see ) can be overridden if + you want. + Consider reading to understand the + structure and relation of similarities within the database. + + + EXAMPLE + + Similarity edition + Here follows some simple examples on how to deal with similarity database. + Pay attention, the following examples set one-way similarities in the DB! Read more about it in . + Adding a similarity between two artists. In the following example "Pelican" will point + to "Russian Circles" with a match score of 88% (ie. "Russian Circles" + 88% similar to Pelican, not reciprocal), it will also check against MPD + the presence of both artists in the music library. + &dhutils; --add "Pelican,Russian Circles:80" --check_names + Similarity string use comma "," as artists separator and semi colon ":" for + artist/similarity score separator, cf. . + Adding a similarity between multiple artists. In the following example "Rage + Against The Machine" will point to "Tool" and "Audioslave" as similar + artists and controls artists names are actually in MPD music library. + &dhutils; --add "Rage Against The Machine,Tool:70,Audiosalve:80" --check_names + Viewing similarit(y|ies) for an artist. In the + following example we are looking for entries for "Rage Against The Machine" + &dhutils; --view_artist "Rage Against The Machine" + + + Black list edition + Adding to black list. You can add a single + track, an album or an artist to the black list. The element to + black list is chosen from the currently playing track. Use + to prevent &dhutils; to queue this + track, or respectively for the album and the + artist. + + Remember you need access to your MPD server to retrieve + information to black list. Defaults are localhost:6600 or found in + environment variables but you may set it up from command + line: + + &dhutils; --bl_curr_art -S mympd.example.org + + To black list a specific artist (not + currently playing) you can use . + + + + + OPTIONS + The program follows the usual GNU command line syntax, + with long options starting with two dashes ("-"). A summary of + options is included below. + + + + + + + Print help and exit. + + + + + + Print version and exit. + + + + + + + Add similarity to the database.For more details about the similarity_string see . + + + + + + + Use with in order to check artists names used in similarity_string. &dhutils; will control presence of artists names in MPD library. Default is to look for MPD server on localhost:6600 or environment variables MPD_HOST and MPD_PORT if set.You can as well give &dhutils; host/port on the command line using respectively and . + + + + + + Use to black list artist_name. &dhutils; is checking artist_name is actually in MPD music library (cf and options to set MPD host/address if necessary). + If artist_name is not found the script print out a list of matching artists. + + + + | | + + Use to black list the currently playing track|artist|album. You need access to your MPD server, use and to set MPD host/address if necessary. + + + + + + + Use the specific file db_file as database.Default is too use XDG_DATA_HOME (see ). + + + + + + Purge history, you may supply an alternative DB file with --dbfile option. + + + + + + + Use with an editing options in order to edit reciprocal similarity as well. and are supporting reciprocal edition. + N.B: this option has to appear after the editing option on the command line. + See for further information about reciprocity notion. + + + + + + Use to remove an artist entry (as main artist) with its associated similarities. To remove artist where it appears as a similar artist use the option. + + + + + + Use to remove a black list entry. To get the row_id to suppress use option. + + + + + + Use to remove a single similarity between a main artist and an associated similarity. Give the main artist first, use comma (",") to separate it from similar artist.Use of is possible here, see . + This option is useful in case you want to remove only a specific similarity between two artists, to remove completely an artist use instead. + + + + + + + Get entries for "artist name" in the data base (print to stdout). + + + + + + Get all entries in the black list. + + + + + + Get all entries in the data base (print to stdout). + + + + + + + Use the specific port number mpd_port on MPD server. This overrides MPD_PORT environment variable.Default is 6600. + + + + + + + Use the specific host mpd_host as MPD server.mpd_host can be an IP or a fully qualified domain name as long as your system can resolve it. This overrides MPD_HOST environment variable.Default is localhost. + + + + + + FILES + + + ${XDG_DATA_HOME}/mpd_sima/sima.db + + SQLite DB file. Usually XDG_DATA_HOME is set to ${HOME}/.local/share. + + + + + + SIMILARITY FORMAT + The similarity_string has to be formatted following a special pattern in order for simadb_cli to extract similarity relations between artists names. Usually a similarity entry is defined as a main artist, lets say main_art, followed by a list of similar artists which you want to be related to that main_art, each artist of that list with a specific similarity value, a match score, quantifying the similarity relation with the main_art. The match score value is an integer in [0 ,100] with 100 corresponding to a perfect match. + similarity_string is then to be formatted as follow: + main_art,first artist:<score>,second artist:<score> + Each artist group are separated with commas (",") and inside each group the artist name and the match score is colon (":") separated. Obviously the first artist group, as the main artist, does not have a match score. + Lets see how it works with an example. I consider "Led Zeppelin" to be similar to "Tool" with a match score of 25, I also want to have "Audioslave" related to "Led Zeppelin" with a score of 20. Then the similarity_string will be the following: + Led Zeppelin,Tool:25,Audiosalve:20 + See for more details about how similarities are handled + + + A WORD ABOUT SIMA DATA BASE + The similarity database is defined from the point of view of a main artist which is declared related to a list of similar artists. That means when you define main_art to be similar to sim_art A and sim_art B the reciprocal won't be true, sim_art A and sim_art B are not similar to main_art. At least this is the default behavior when you edit entries with simadb_cli, this is also the way last.fm is working concerning similar artists. This documentation is using that particular terminology to specify which kind of artist we are dealing with : "main artist" or "similar artist".The option allows one to add reciprocal relation where sim_art A and sim_art B become respectively the main_art. Using you will then edit two more entries in the database. To summarize here is what you'll end up with in your data base adding similarity with this string main_art,sim_art A:34,sim_art B:45. + simadb_cli --reciprocal --add_similarity=main_art,sim_art A:34,sim_art B:45 + main_art similar to sim_art A:34 and sim_art B:45sim_art A similar to main_art:34sim_art B similar to main_art:45 + Without the reciprocal option you would have add only the first similarity. Usually using the reciprocal option is the desired behavior, at least what users have in mind when thinking of similarity relation between to artists but keep in mind that it may lead to have MPD_sima more sensible to loop over the same two artist (ASSERTION TO BE CONFIRMED). + + + + +