ALSEARCH(1)

๐Ÿ“ฆ
version 0.05 ยท 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

โœจ ALSEARCH(1) โœจ

Okay bestie, this one lives under User Contributed Perl Documentation ๐Ÿ“š and it's the guide to alsearch ๐ŸŽถ

๐Ÿ’– NAME

alsearch, which is the tool that searches the AudioLink database for music ๐ŸŽงโœจ

๐Ÿ”ฎ SYNOPSIS

alsearch [OPTION]... search_option... --td=/some/path/to/create/links/

alsearch [OPTION]... search_option... -s

๐ŸŽง DESCRIPTION

So this script is how you hunt for songs in the AudioLink database ๐Ÿ” You can throw in one or several options for the artist, composer, lyricist, album, etc., and those become your search criteria. It's giving customizable ๐Ÿ’…

You can pass several search_option options to dig up specific music files. Check the "search options" section further down for the full list ๐ŸŒธ

The search is not case sensitive ๐Ÿ™ˆ alsearch looks for strings and sub-strings in the fields it searches, so you don't need the exact spelling. See the "examples" section for more info ๐Ÿ’œ

Specifying the --td (target directory) option is mandatory if you want links made to the actual files ๐Ÿšจ That directory holds the symbolic links to the real audio files, and it gets created if it doesn't exist yet ๐Ÿ“

Making symbolic links to the real files is basically like making playlists in your audio app ๐ŸŽ€ Symlinks just point at the actual files on your hard disk, and this way of making and storing playlists is so useful for a few reasons, like:

  1. Compatible across various audio players ๐Ÿฆ‹ Since your "playlists" are real files on your hard disk, you can add whole directories that alsearch generated into your audio software's playlist. If you ever switch to a different music player, your playlists come with you ๐Ÿ‘‘ You don't have to stress about whether the two players' playlist formats match ๐Ÿ˜ญ
  2. Can be seen and operated upon in a file browser ๐ŸŒˆ Because the symbolic links live on the file system, you can look at your playlist collection with normal shell file operations or a GUI file browser ๐Ÿงš If the file browser supports file traversals and symlinks, it'll show you the info of the actual song โœจ

๐ŸŽ€ OPTIONS

  • --help โ€” Brief usage info, bestie ๐Ÿซถ
  • --host=xxx โ€” Connects to the MySQL server on the target host. The default is localhost ๐Ÿ 
  • --pass=xxx โ€” The password for the database ๐Ÿ”
  • -s, --na โ€” Just shows you the search results and doesn't make any links. It's simulation mode, so think of it as a vibe check before committing ๐Ÿ™ˆ
  • --td=xxx โ€” The target directory where links get created ๐Ÿ“
  • --user=xxx โ€” The username for the database ๐Ÿ‘ค
  • -v, --verbose โ€” Shows some extra info. It's super useful for spotting errors and sending debug info ๐Ÿ”ฅ

๐Ÿ”Ž SEARCH OPTIONS

  • --album=xxx โ€” Searches the "album" field ๐Ÿ’ฟ
  • --artist=xxx โ€” Searches the artist/band/performers fields. You can give this option multiple times ๐ŸŽค You can do it like this:
"alsearch --artist=kishore --artist=asha --td=/songs/asha_kishore"
  • --comment=xxx โ€” Searches the "comment" field ๐Ÿ’ฌ
  • -c, --composer=xxx โ€” Searches the "composer" field ๐ŸŽผ
  • --genre=xxx โ€” Searches the "genre" field ๐ŸŽต
  • -l, --lyricist=xxx โ€” Searches the "lyricist" field โœ๏ธ
  • --title=xxx โ€” Searches the "title" field ๐ŸŒŸ

๐Ÿ’… EXAMPLES

Okay so options that take arguments can be written two ways, and both are iconic ๐Ÿ‘‘ The option and its argument can be separated by a space (' ') or an equal sign ('=') ๐Ÿฆ‹

"alsearch --artist="kishore kumar" --td=/songs/kishore"

"alsearch --artist "kishore kumar" --td /songs/kishore"

If you want to search for a string with spaces in it, wrap that string in " " ๐Ÿซถ

"alsearch --artist=kishore --composer=burman --lyricist=bakshi"

That one will search for songs sung by Kishore, composed by Burman, and written by Bakshi ๐ŸŽถ Any name in the composer field that has "burman" in it will match, so it'll find songs composed by RD Burman, SD Burman, etc. This is true for all the search fields, periodt ๐Ÿ’–

๐ŸŒธ SEE ALSO

audiolink(1), alfilldb(1) โญ The current version of this man page is available on the AudioLink website at http://audiolink.sourceforge.net/ ๐ŸŒ

๐Ÿ› BUGS

Bug reports for the AudioLink software or the man pages go to the audiolink-devel mailing list at audiolink-devel@lists.sourceforge.net ๐Ÿ’€

๐Ÿ‘ฉโ€๐Ÿ’ป AUTHOR

This manual page is written and maintained by Amit Shah <amitshah@gmx.net> ๐Ÿงš

The AudioLink package is Copyright (C) 2003, Amit Shah <amitshah@gmx.net>. All the programs and the documentation that come as part of AudioLink are licensed under the GNU General Public License v2 (GPLv2) ๐ŸŒˆ


Stay iconic, and happy searching! This page came from perl v5.30.3, dated 2020-08-11, under ALSEARCH(1) ๐Ÿ’œ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from