openbooks icon indicating copy to clipboard operation
openbooks copied to clipboard

Download Organization - and Browser Dl Inhibition

Open jeeftor opened this issue 11 months ago • 8 comments

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 avatar Apr 21 '25 15:04 jeeftor

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

image

jeeftor avatar Apr 21 '25 17:04 jeeftor

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

CheapDevotion avatar Aug 31 '25 18:08 CheapDevotion

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 avatar Aug 31 '25 21:08 jeeftor

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

jeeftor avatar Sep 02 '25 12:09 jeeftor

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

CheapDevotion avatar Sep 02 '25 14:09 CheapDevotion

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

jeeftor avatar Sep 02 '25 18:09 jeeftor

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

JamesDAdams avatar Sep 04 '25 11:09 JamesDAdams