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

Add more book repositories. #15

Open
costis94 opened this issue Jun 6, 2021 · 2 comments
Open

Add more book repositories. #15

costis94 opened this issue Jun 6, 2021 · 2 comments

Comments

@costis94
Copy link
Owner

costis94 commented Jun 6, 2021

Hi.

The addition of more book repositories, like Project Gutenberg, is a high priority which will enchase the overall usefulness of BookCut.

The first idea is to create a new command, for example:
bookcut gutenberg --search "Moby Dick"

Any recommendation about free book repositories or implementation of the addition is welcome.

@DerPhysikeR
Copy link
Contributor

Hi

I'm not sure if a specific command like bookcut gutenberg is the best way to go here, since there are a lot of free sources for ebooks https://www.tckpublishing.com/websites-download-free-ebooks/

It might be a better idea to use a --repos option where one can set a list of repositories to search for an ebook.
Like this:

bookcut book --repos=gutenberg,libgen -a Homer -b Iliad

If no repos option is given, a list of repos could be set in the configuration file, ordered by priority.
They could be searched one after the other, until a certain number of results is found and the user is prompted to select one of the mirrors to download.

What do you think?

@costis94
Copy link
Owner Author

costis94 commented Jun 10, 2021

Hi again.

I believe your idea about repos option is superb!

But I think it's a better idea to insert the new feature under bookcut search command, keep the default search repo the libgen and give the option to change it through bookcut config.

I'm currently working on a new branch about repositories addition. What do you think?

costis94 added a commit that referenced this issue Jun 11, 2021
Fixed issues #17 & #13.
The new repositories option added. (Issue #15 )
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

2 participants