Skip to content

Download Organization - and Browser Dl Inhibition #189

Open
jeeftor wants to merge 13 commits intoevan-buss:masterfrom
jeeftor:feature/org
Open

Download Organization - and Browser Dl Inhibition #189
jeeftor wants to merge 13 commits intoevan-buss:masterfrom
jeeftor:feature/org

Conversation

@jeeftor
Copy link
Copy Markdown

@jeeftor jeeftor commented Apr 21, 2025

Use Case

Often books can be served via AudiobookShelf or Calibre-Web. In these use cases I believe all that is required is to dump books down to a specific directory and let the server program pick them up. There is no need to deliver books to the browser.

New CLI/Docker Flags

To support this use case I've added 3 flags

  • --no-browser-downloads: Prevents downloads from being served to the browser.
  • --organize-downloads: Organizes downloaded books into subdirectories by author and title, e.g. /books/Author/Title/Book.ext.
  • --replace-space <char>: Replaces spaces in author and title directory names with the specified character. For example, --replace-space _ will save Firstname Lastname as Firstanme_Lastname. Leave empty to preserve spaces. Works with --organize-downloads.

Relates to my Issue: #188

Minor updates

  • Added missing CLI flags to the readme (hope thats ok)
  • Enhanced logging to printout all config options at startup

image

  • Log absolute download location to disk

image

@jeeftor
Copy link
Copy Markdown
Author

jeeftor commented Apr 21, 2025

Note -> I had to address this SONAR issue that popped up:

image

@jeeftor jeeftor marked this pull request as ready for review April 21, 2025 18:20
@jeeftor jeeftor marked this pull request as draft April 21, 2025 18:22
@jeeftor jeeftor marked this pull request as ready for review April 21, 2025 18:25
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@CheapDevotion
Copy link
Copy Markdown

Came here looking for these features. What's needed to get this merged in?

@jeeftor
Copy link
Copy Markdown
Author

jeeftor commented Aug 31, 2025

I dont think they want to implement this - however - I do have a Dockerfile out with these changes:

docker pull jeffsui/openbooks

  openbooks:
    # image: evanbuss/openbooks
    image: jeffsui/openbooks
    container_name: openbooks
    restart: unless-stopped
    volumes:
      # - ${CONFIG_DIR}/openbooks:/books
      - ${IRC}/books:/books
    command: --persist --name downloadmonkey  --organize-downloads --no-browser-downloads --replace-space "." --dir /

I've been running it wow - for months I guess since I opened the PR :)

@jeeftor
Copy link
Copy Markdown
Author

jeeftor commented Sep 2, 2025

@CheapDevotion -> what is your use case. I will use this and then run my Audiobook-Organizer tool against the downloads for even better organization

@CheapDevotion
Copy link
Copy Markdown

@jeeftor - thanks for the Dockerfile and the link to your organizer tool. This is exactly what I was looking for.

@jeeftor
Copy link
Copy Markdown
Author

jeeftor commented Sep 2, 2025

@evan-buss - any chance of getting this implemented - as there is a least 2 of us. I'm happy to maintain my fork otherwise

@JamesDAdams
Copy link
Copy Markdown

I dont think they want to implement this - however - I do have a Dockerfile out with these changes:

docker pull jeffsui/openbooks

  openbooks:
    # image: evanbuss/openbooks
    image: jeffsui/openbooks
    container_name: openbooks
    restart: unless-stopped
    volumes:
      # - ${CONFIG_DIR}/openbooks:/books
      - ${IRC}/books:/books
    command: --persist --name downloadmonkey  --organize-downloads --no-browser-downloads --replace-space "." --dir /

I've been running it wow - for months I guess since I opened the PR :)

Thanks men, it's work well !
Juste, the Previous Downloads list is not updated...

Thanks for your job, i'm waiting this from a long time :D

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.

3 participants