Skip to content

UnstoppableMango/multi-downloader-nx-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-downloader-nx Docker Image

Docker Image Version (latest semver) Docker Image Size (latest semver) Docker Stars

This is a docker image for anidl/multi-downloader-nx

Usage

Bash:

docker run -it --rm \
    --name anidl \
    -v <path-to-your-config>:/config:rw \
    -v <path-to-your-downloads>:/videos:rw \
    unstoppablemango/multi-downloader-nx \
    <downloader-options>

Powershell:

docker run -it --rm `
    --name anidl `
    -v <path-to-your-config>:/config:rw `
    -v <path-to-your-downloads>:/videos:rw `
    unstoppablemango/multi-downloader-nx `
    <downloader-options>

Permissions

Currently downloads will be created as root. In the future I plan to allow setting UID and GID. For now to fix permissions, you can run

$ sudo chown <uid>:<gid> /path/to/downloads/*

<uid> and <gid> can be obtained from id.

Examples

Authenticating

docker run -it --rm \
    -v ~/.config/anidl:/config:rw \
    unstoppablemango/multi-downloader-nx \
    --service crunchy \
    --auth

Searching

docker run -it --rm \
    -v ~/.config/anidl:/config:rw \
    unstoppablemango/multi-downloader-nx \
    --service crunchy \
    --search "Tower of God"

Downloading

docker run -it --rm \
    -v ~/.config/anidl:/config:rw \
    -v ~/Videos/anidl:/videos:rw \
    unstoppablemango/multi-downloader-nx \
    --service crunchy \
    --series G6J0G49DR
    --all

Compose

Here is a barebones docker-compose file to get started.

This image comes with a default configuration, so the /config mount is technically optional. Using the default config won't persist authentication info so it is recommended to provide your own. See Configuration.

Configuration

Currently all configuration is provided via commandline. Refer to the source documentation for all options.

To persist configuration such as authentication, mount a volume to /config.

Downloads will be put in /videos.

version: '3'

services:
  anidl:
    image: unstoppablemango/multi-downloader-nx
    volumes:
    - "<path-to-your-config>:/config:rw"
    - "<path-to-your-downloads>:/videos:rw"
    command: <downloader-options>

Build

docker build . -t anidl

Optionally specify a different version. The build works by cloning a tag from the source repository. So the version must be a valid tag in https://github.com/anidl/multi-downloader-nx.

#!/bin/bash
VERSION=$(cut -d'-' -f 1 VERSION)
docker build . --build-arg VERSION=$VERSION -t anidl:$VERSION

Note: The version in VERSION includes a suffix to track the image version so we strip that off before passing it to the build.

With BuildKit:

docker buildx build . -t anidl
#!/bin/bash
VERSION=$(cut -d'-' -f 1 VERSION)
docker buildx build . --build-arg VERSION=$VERSION -t anidl:$VERSION

Official Image

Since creating this, the source project has added it's own image.

Docker Hub

Dockerfile

As far as I can tell, both images serve the same end. I'll attempt to keep this updated anyways.

Mines smaller 😏