We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
files
1 parent 010dd9f commit dd74817Copy full SHA for dd74817
src/cli/Program.fs
@@ -350,7 +350,10 @@ module Program =
350
let listFiles libraryFile (config: Config.FilesConfig) =
351
result {
352
let! library = Library.fromFile libraryFile
353
- let! books = config.Ids |> List.traverseResultA (fun id -> Library.findById id library) |> Result.mapError (b0wter.FSharp.String.join "; ")
+ let! books = if config.Ids.IsEmpty then
354
+ library.Audiobooks |> Ok
355
+ else
356
+ config.Ids |> List.traverseResultA (fun id -> Library.findById id library) |> Result.mapError (b0wter.FSharp.String.join "; ")
357
358
let filter = match config.ListMissing with
359
| false -> id
0 commit comments