Skip to content

Getting errors when downloading books #5

@nivek1385

Description

@nivek1385

This is happening with many books, if not all. There do seem to be more files in the cache directory than in the downloads directory, but overall I'm getting:

Searching library for ISBN: xxx
Downloading: xxxx
(error) LibroFmClient.mergeDirectories
error: {
  "code": "EINVAL",
  "path": "/home/user/.bun/install/global/node_modules/libro-client/data/cache/AUTHOR-0/TITLE-Track XXX.mp3",
  "dest": "/home/user/.bun/install/global/node_modules/libro-client/downloads/AUTHOR/TITLE-Track XXX.mp3",
  "syscall": "copyfile",
  "errno": -22
}
error: {}
libro get [isbns...]

Download a book. Optionally provide ISBNs to download specific books.

Positionals:
  isbns  ISBN of the book to download                       [array] [defaul: []]

Options:
  --help

snip

125 |                          });
126 |  
127 |                           return filename;
128 |                } catch (error) {
129 |                          logger.error({ error, fn: "LibroFmClient.downloadBook" });
130 |                          throw new Error("Failed to download books");
                    ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions