Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting errors when downloading books #5

Open
nivek1385 opened this issue Feb 21, 2025 · 0 comments
Open

Getting errors when downloading books #5

nivek1385 opened this issue Feb 21, 2025 · 0 comments

Comments

@nivek1385
Copy link

nivek1385 commented Feb 21, 2025

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");
                    ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant