SYNOPSIS

alsearch [\s-1OPTION\s0]... search_option... --td=/some/path/to/create/links/

alsearch [\s-1OPTION\s0]... search_option... -s

DESCRIPTION

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:

1. Compatible across various audio players

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.

2. Can be seen and operated upon in a file browser

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.

OPTIONS

--help

Brief usage information

--host=xxx

Connects to the MySQL server on the target host. Default is localhost.

--pass=xxx

Password for the database

-s, --na

Just displays the search results, doesn't create links (simulation mode)

--td=xxx

Target-directory in which to create links

--user=xxx

Username for the database

-v, --verbose

Displays some extra information. Useful for spotting errors and sending debug information.

SEARCH OPTIONS

--album=xxx

Search in the \*(L"album\*(R" field

--artist=xxx

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'

--comment=xxx

Search in the \*(L"comment\*(R" field

-c, --composer=xxx

Search in the \*(L"composer\*(R" field

--genre=xxx

Search in the \*(L"genre\*(R" field

-l, --lyricist=xxx

Search in the \*(L"lyricist\*(R" field

--title=xxx

Search in the \*(L"title\*(R" field

EXAMPLES

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.

RELATED TO alsearch…

L<audiolink(1)>, L<alfilldb(1)> The current version of this man page is available on the AudioLink website at <http://audiolink.sourceforge.net/>.

BUGS

Report bugs related to the AudioLink software or the man pages to the audiolink-devel mailing list <[email protected]>.

AUTHOR

This manual page is written and maintained by Amit Shah <[email protected]>

COPYRIGHT

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).