Add search command
This commit is contained in:
24
README.md
24
README.md
@ -103,9 +103,16 @@ If a song ends up with no `dl_links` during scanning, for instance because they
|
||||
"download sites", it will not be included in the database. Thus, the final number of songs in your database is
|
||||
guaranteed to be smaller than the total number listed on the C3DB website.
|
||||
|
||||
## Downloading
|
||||
## Searching & Downloading
|
||||
|
||||
Once a database has been built, you can start downloading songs.
|
||||
Once a database has been built, you can start searching for downloading songs.
|
||||
|
||||
To search for songs, use the `search` command. This command takes `--filter` arguments in order to show what
|
||||
song(s) would be downloaded by a given filter, without actually triggering the download. Once you have a valid
|
||||
filter from a search, you can use it to download.
|
||||
|
||||
To download songs, use the `download` command. See the following sections for more details on the specifics of
|
||||
the filters and output formatting of the `download` command.
|
||||
|
||||
By default, when downloading a given song, all possible download links (`dl_links`) will be downloaded; this
|
||||
can be limited by using the `-i`/`--download-id` and `-d`/`--download-descr` options to pick and choose specific
|
||||
@ -131,15 +138,18 @@ genres, artists, authors, etc. to make your custom song packs.
|
||||
Note that we *cannot* filter - mostly for parsing difficulty reasons - by intrument type or difficulty, by song
|
||||
length, or by any other information not mentioned above.
|
||||
|
||||
Filtering is always done during the download stage; the JSON database will always contain all possible entries.
|
||||
Filtering is always done during the search/download stage; the JSON database will always contain all possible entries.
|
||||
|
||||
To use filters, append one or more `--filter` options to your `c3dbdl download` command. A filter option begins
|
||||
with the literal `--filter`, followed by the category (e.g. `genre` or `artist`), then finally the text to filter
|
||||
on, for instance `Rock` or `Santana` or `2012`. The text must be quoted if it contains whitespace.
|
||||
To use filters, append one or more `--filter` options to your `c3dbdl download` or `search` command. A filter option
|
||||
begins with the literal `--filter`, followed by the category (e.g. `genre` or `artist`), then finally the text to
|
||||
filter on, for instance `Rock` or `Santana` or `2012`. The text must be quoted if it contains whitespace.
|
||||
|
||||
If more that one filter is specified, they are treated as a logical AND, i.e. all the listed filters must apply to
|
||||
a given song for it to be downloaded in that run.
|
||||
|
||||
Filter values are fuzzy. They are case insensitive, and use the `in` construct. So, for example, the filter string
|
||||
`--filter song "edmund fitzgerald"` would match the song title "The Wreck of the Edmund Fitzgerald".
|
||||
|
||||
Filters allow very specific download selections to be run. For example, let's look for all songs by Rush
|
||||
from the album Vapor Trails (the remixed version) authored by ejthedj:
|
||||
|
||||
@ -164,7 +174,7 @@ directory.
|
||||
|
||||
`c3dbdl` provides complete flexibility in the output file format. When downloading, use the `--file-structure`
|
||||
option to set the file structure. This value is an interpolated string containing one or more field variables,
|
||||
which are mapped at download file. The available fields are:
|
||||
which are mapped at download time. The available fields are:
|
||||
|
||||
* `genre`: The genre of the song.
|
||||
* `artist`: The artist of the song.
|
||||
|
Reference in New Issue
Block a user