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 Split Library support to ingestor #93

Closed
wants to merge 4 commits into from

Conversation

tucker87
Copy link

I'm attempting to fix my own issue. But I've never written Python. These edits were made in browser.

I looked at CW's code for handling this and mimicked it.

This is untested.
Would appreciate feedback/help.

Fixes #92

This will be used by the ingest processor to save books to the split_dir
Use config_calibre_split_dir if it's set. 
Save to library path otherwise.
config_calibre_split ended up not being used. 
CW wasn't using it to determine the save path and I followed their example

I've never used python before but I'm seeing that assigning to self.x seems to be idiotmatic.
@tucker87
Copy link
Author

Looks like the author implented these changes in

48b039b

Thanks!

@tucker87 tucker87 closed this Oct 13, 2024
@MrLemur
Copy link

MrLemur commented Oct 13, 2024

@tucker87 Has this actually worked for you? The changes still cause the book to be added to the wrong folder, plus the book ingest function is broken now due to a misspelled variable name.

@tucker87
Copy link
Author

I did not test the author's version. I just saw the conflicts when I went to rebase and realized they had done basically the same thing.

@jmarmstrong1207
Copy link
Contributor

@tucker87 Has this actually worked for you? The changes still cause the book to be added to the wrong folder, plus the book ingest function is broken now due to a misspelled variable name.

Which variable and error are you referencing?

@jmarmstrong1207
Copy link
Contributor

jmarmstrong1207 commented Oct 13, 2024

Looks like the author implented these changes in

48b039b

Thanks!

I can't see where he implemented the split feature. I'd keep your PR open as a draft for now.

@jmarmstrong1207
Copy link
Contributor

jmarmstrong1207 commented Oct 13, 2024

I just merged my PR providing instructions on how to create a development docker container as well! Check the readme, as it's just executing a bash script, then doing docker compose on the dev docker compose file in build/.

This PR would need to be revamped as the python file is completely redone, however it looks like you have 99% of all things needed already. Probably be easier to just create a new branch then add the code there though

@tucker87 tucker87 marked this pull request as draft October 13, 2024 18:40
@MrLemur
Copy link

MrLemur commented Oct 13, 2024

@tucker87 Has this actually worked for you? The changes still cause the book to be added to the wrong folder, plus the book ingest function is broken now due to a misspelled variable name.

Which variable and error are you referencing?

The var name here is wrong: https://github.com/crocodilestick/Calibre-Web-Automated/blob/main/scripts/ingest-processor.py#L182

@jmarmstrong1207
Copy link
Contributor

@tucker87 Has this actually worked for you? The changes still cause the book to be added to the wrong folder, plus the book ingest function is broken now due to a misspelled variable name.

Which variable and error are you referencing?

The var name here is wrong: https://github.com/crocodilestick/Calibre-Web-Automated/blob/main/scripts/ingest-processor.py#L182

Just fixed it now. Should be pushed to the dev image soon

@jmarmstrong1207
Copy link
Contributor

@MrLemur dev image has been pushed. Use my dev image: jmarmstrong1207/calibre-web-automated:dev

@MrLemur
Copy link

MrLemur commented Oct 14, 2024

@MrLemur dev image has been pushed. Use my dev image: jmarmstrong1207/calibre-web-automated:dev

I can confirm that now fixes the broken import. The original split library issue remains.

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

Successfully merging this pull request may close these issues.

[Feature Request] Separate Book Files from Library / Split Libraries
3 participants