Skip to content

vertigo235/nugsalert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nugs Alert and Downloader Build Status

This Docker container checks for new content on nugs.net and downloads it if any new content is found.

Environment Variables

  • ARTIST_ID: The ID of the artist you want to check for new content. (e.g., '196') can also be a string of artists (e.g., '196,128').
  • FILE_PATH: Path where the known IDs file will be stored. (Default is '/data/')
  • PUSHOVER_APP_TOKEN: Your Pushover application token for notifications.
  • PUSHOVER_USER_KEY: Your Pushover user key for notifications.
  • CHECKTIME: Number of minutes the application should wait before checking for updates again. If not set, the application will only run once.
  • DOWNLOAD_AUDIO: If set to 'true', the script will attempt to download new shows using the /app/Nugs-DL tool.
  • DOWNLOAD_VIDEO: If set to 'true', the script will attempt to download new shows using the /app/Nugs-DL tool.
  • LIMIT: The maximum number of shows to load from the RSS feed. (Default is 50)
  • AUDIO_URL_TEMPLATE: Template URL for fetching audio data. (Default is constructed from LIMIT and ARTIST_ID)
  • VIDEO_URL_TEMPLATE: Template URL for fetching video data. (Default is constructed from LIMIT and ARTIST_ID)
  • AUDIO_FILENAME: Filename where known audio IDs are stored. (Default is 'known_ids.json' in FILE_PATH)
  • VIDEO_FILENAME: Filename where known video IDs are stored. (Default is 'known_video_ids.json' in FILE_PATH)
  • DOWNLOAD_AUDIO_PATH: Path where downloaded audio content will be stored. (Default is '/downloads/audio')
  • VIDEO_DOWNLOAD_PATH: Path where downloaded video content will be stored. (Default is '/downloads/video')
  • NUGS_EMAIL: Your nugs.net email.
  • NUGS_PASSWORD: Your nugs.net password.
  • NUGS_FORMAT: The audio format you prefer to download (default is 4).
  • NUGS_VIDEO_FORMAT: The video format you prefer to download (default is 5).
  • NUGS_OUT_PATH: Path where the downloaded content will be stored (default is '/downloads').
  • NUGS_TOKEN: Nugs token if available.
  • NUGS_USE_FFMPEG_ENV_VAR: Whether to use ffmpeg environment variable (default is 'true').

Build and Run

To build the Docker image, navigate to the directory containing the Dockerfile and execute:

docker build -t nugsalert .

To run the Docker container:

docker run --rm -it \
  -v /path/on/host/downloads:/downloads:rw \
  -v /path/on/host/data:/data:rw \
  -e ARTIST_ID='196' \
  -e PUSHOVER_APP_TOKEN='your_token' \
  -e PUSHOVER_USER_KEY='your_key' \
  -e NUGS_USERNAME='your nugs.net username' \
  -e NUGS_PASSWORD='your nugs.net password' \
  -e DOWNLOAD_SHOW='true' \
  nugsalert

Replace /path/on/host/ with your desired directory on the host system.

Docker Image

You can also pull the Docker image for this project directly from Docker Hub:

docker pull docker.io/vertigo235/nugsalert

Docker Compose

For a more streamlined deployment, especially when running multiple containers, you can use Docker Compose. Below is a sample docker-compose.yml configuration for nugsalert:

version: '3.8'

services:
  nugsalert:
    image: vertigo235/nugsalert:latest
    container_name: nugsalert
    restart: unless-stopped
    environment:
      NUGS_EMAIL: your_email@example.com
      NUGS_PASSWORD: 'your_password'
      CHECKTIME: "5"
      PUSHOVER_APP_TOKEN: your_pushover_app_token
      PUSHOVER_USER_KEY: your_pushover_user_key
      ARTIST_ID: "101,128,196"
      DOWNLOAD_SHOW: "true"
      PUID: "1000"
      PGID: "100"
      TZ: "US/Eastern"
    volumes:
      - /path_on_host/to/data:/data
      - /path_on_host/to/downloads:/downloads

To deploy using Docker Compose, navigate to the directory containing your docker-compose.yml and run:

docker-compose up -d

Remember to replace placeholder values like your_email@example.com with your actual data. If your password or any other values have special characters, ensure they're enclosed in single quotes for proper parsing.

Troubleshooting

Common Issues

  • Network Errors: Ensure that the container has network access and can reach nugs.net.
  • Authentication Failures: Verify that NUGS_EMAIL and NUGS_PASSWORD are correct.
  • Permission Denied: Check that the user running the container has the necessary permissions to write to the specified directories.

Solutions

  • Network Errors: Use docker run --network host to allow the container to use the host's network stack.
  • Authentication Failures: Double-check your credentials and ensure they are not expired.
  • Permission Denied: Ensure that the user running the container has the correct permissions. You can adjust the PUID and PGID environment variables accordingly.

Contributing

We welcome contributions to improve this project! Here's how you can get involved:

  1. Fork the Repository: Create a fork of this repository on GitHub.
  2. Create a Branch: Make your changes in a new branch.
  3. Submit a Pull Request: Open a pull request with a description of your changes.

Credits

This docker uses the Nugs-Downloader project by Sorrow446. A huge thanks to them for their contribution to the community!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published