Search the audiolink database for music
alsearch [\s-1OPTION\s0]... search_option... --td=/some/path/to/create/links/
alsearch [\s-1OPTION\s0]... search_option... -s
You can use this script to search for songs in the AudioLink database. You can specify one or several options for the artist, composer, lyricist, album, etc., as the search criteria.
You can specify several search_option options to search for particular music files. See the section on \*(L"search options\*(R" for the list of options.
The search is not case sensitive. alsearch looks for strings as well as sub-strings in the fields being searched. See the \*(L"examples\*(R" section for more information.
Specifying the --td (target directory) option is mandatory for creating links to the actual files. This directory will contain the symbolic links to the actual audio files. The directory will be created if it doesn't exist.
Creating symbolic links to the actual files is analogous to creating playlists in audio-playing software. Symbolic links are actually just point to the actual files on the hard disk. This way of creating and storing playlists is very useful in several ways, some of which are:
Since the \*(L"playlists\*(R" are actually files represented on your hard disk, you can add whole directories generated by the alsearch program in the playlist of your audio software. If you switch to another music player for whatever reason, you still have your playlists. You don't have to bother about compatibility between the playlist formats of the two players.
As the symbolic links are present on a file-system, your playlist collection can be viewed by using normal file operations in the shell or using a GUI-based file browsing program. If the file browsing program is supports file traversals and symlinks, it'll show you the information of the actual song.
Brief usage information
Connects to the MySQL server on the target host. Default is localhost.
Password for the database
Just displays the search results, doesn't create links (simulation mode)
Target-directory in which to create links
Username for the database
Displays some extra information. Useful for spotting errors and sending debug information.
Search in the \*(L"album\*(R" field
Search in the artist/band/performers fields. You can give this option multiple times, for example: \*(C`alsearch --artist=kishore --artist=asha --td=/songs/asha_kishore\*(C'
Search in the \*(L"comment\*(R" field
Search in the \*(L"composer\*(R" field
Search in the \*(L"genre\*(R" field
Search in the \*(L"lyricist\*(R" field
Search in the \*(L"title\*(R" field
The options that take arguments can be specified in two ways:
\*(C`alsearch --artist="kishore kumar" --td=/songs/kishore\*(C'
\*(C`alsearch --artist "kishore kumar" --td /songs/kishore\*(C'
That is, the option and the argument can be separated with a ' ' (space) or an '=' (equal) sign.
In case you want to search for a string that has spaces, enclose the string in \*(L" \*(R".
\*(C`alsearch --artist=kishore --composer=burman --lyricist=bakshi\*(C'
Will search for songs sung by *Kishore*, composed by *Burman* and written by *Bakshi*. Any name in the composer field which have \*(L"burman\*(R" in them will be matched. This means, it'll find songs composed by \s-1RD\s0 Burman, \s-1SD\s0 Burman, etc. This is true for all search fields.
L<audiolink(1)>, L<alfilldb(1)> The current version of this man page is available on the AudioLink website at <http://audiolink.sourceforge.net/>.
Report bugs related to the AudioLink software or the man pages to the audiolink-devel mailing list <[email protected]>.
This manual page is written and maintained by Amit Shah <[email protected]>
The AudioLink package is Copyright (C) 2003, Amit Shah <[email protected]>. All the programs and the documentation that come as part of AudioLink are licensed by the \s-1GNU\s0 General Public License v2 (GPLv2).