Giter VIP home page Giter VIP logo

docker-sabnzbd-extended's Introduction

Deprecated

This repository is now deprecated, will no longer be updated and is being archived.

Scripts/Project has moved to: https://github.com/RandomNinjaAtk/arr-scripts

sabnzbd

What is SABnzbd Extended:

  • Linuxserver.io SABnzbd docker container (develop tag)
  • Additional packages and scripts added to the container to provide additional functionality

SABnzbd itself is not modified in any way. This is strictly SABnzbd Develop branch

For more details, visit the Wiki

This containers base image is provided by: linuxserver/sabnzbd

All Arr-Extended Apps:

Supported Architectures

The architectures supported by this image are:

Architecture Tag
x86-64 amd64-latest

Version Tags

Tag Description
latest SAbnzbd + Extended Scripts + SMA

Parameters

Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 8080 The port for the Sonarr webinterface
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-v /config Sabnzbd application files
-e AUDIO_FORMAT=FLAC FLAC or OPUS or MP3 or AAC or ALAC - converts lossless FLAC files to set format
-e AUDIO_BITRATE=320 Set to desired bitrate when converting to OPUS/MP3/AAC format types
-e AUDIO_VERIFY=TRUE TRUE = ENABLED, Verifies FLAC/MP3 files for errors (fixes MP3's, deletes bad FLAC files)
-e AUDIO_DSFA=TRUE TRUE = ENABLED :: Detects single file albums and mark download as failed if detected
-e AUDIO_REPLAYGAIN=FALSE TRUE = ENABLED, adds replaygain tags for compatible players (FLAC ONLY)
-e RequireLanguage=false true = enabled, disables/enables checking video audio/subtitle language based on VIDEO_LANG setting
-e VIDEO_LANG=eng Default: eng :: Set to required language (this is a "," separated list of ISO 639-2 language codes)
-e VIDEO_SMA=FALSE TRUE = Enabled :: Uses SMA to process incoming video files, update your configuration at: /config/scripts/configs/*-sma.ini
-e VIDEO_SMA_TAGGING=TRUE TRUE = Enabled :: Uses SMA to Tag MP4 files (Enabled SMA process: manual.py -a; Disabled SMA Process: manual.py -nt)

Application Setup

Access the webui at <your-ip>:8080, for more information check out SABnzbd.

Important Docker Information

Important Paths:

/config :: Location of SABnzbd aplication files
/config/scripts :: Location of SABnzbd post process script files (automatically mapped in SABnzbd)
/config/scripts/logs :: Location of script log files
/config/scritps/configs :: Location of config files

Important SABNzbd Configuration:

Folders Configuration:

  • Scripts Folder :: Set to: /config/scripts

Switches: Post processing

  • Pause Downloading During Post-Processing :: Highly recommended that you enable this setting to not overtask your system

Categories Configuration:

  • lidarr :: Add category and post processing script: audio-pp.bash
  • radarr :: Add category and post processing script: video-pp.bash
  • sonarr :: Add category and post processing script: video-pp.bash

Scripts/Files included:

audio-pp.bash :: Automatically clean up downloaded audio files and convert to standardized format if desired
video-pp.bash :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled

Sickbeard MP4 Automater (SMA):

Config Files Location: /config/scritps/configs

  • radarr-sma.ini :: config file for SMA (Applies to "radarr" category)
  • sonarr-sma.ini :: config file for SMA (Applies to "sonarr" category)

Log Files Location: /config/scritps/logs

  • sma.log :: Log file for SMA

For more detailed configuration info, visit: https://github.com/mdhiggins/sickbeard_mp4_automator

Hardware Acceleration:

  1. Set the video codec in SMA config file to: h264vaapi (h254) or h265vaapi (h265)

docker-sabnzbd-extended's People

Contributors

randomninjaatk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

p1rps01

docker-sabnzbd-extended's Issues

Feature request: Support multiple languages

Currently, the script only supports one default language:

-e ReqauireLanguage=true
-e VIDEO_LANG=eng

I have some German movies, which do not have English sub-titles either. So, ideally I could set the required language to "English or German".

Possible?

Thanks in advance for considering!

Audio/Subtitle Language

I have set this to "true" and to "eng,ger".

It seems to be largely working well, but some movies are marked as "failed". The script indicates that things are good, but somehow the files is not being proceessed:

2023-04-08 14:38:18 :: 1.0.26 :: SABnzbd Job: Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:38:18 :: 1.0.26 :: SABnzbd Category: radarr
2023-04-08 14:38:18 :: 1.0.26 :: DOCKER: SABnzbd Extended
2023-04-08 14:38:18 :: 1.0.26 :: SCRIPT VERSION: 1.0.26
2023-04-08 14:38:18 :: 1.0.26 :: SCRIPT: Video Post Processor (VPP)
2023-04-08 14:38:18 :: 1.0.26 :: CONFIGURATION VERIFICATION
2023-04-08 14:38:18 :: 1.0.26 :: ##########################
2023-04-08 14:38:18 :: 1.0.26 :: Preferred Audio/Subtitle Languages: eng,ger
2023-04-08 14:38:18 :: 1.0.26 :: Require Matching Language :: Enabled
2023-04-08 14:38:18 :: 1.0.26 :: Sickbeard MP4 Automator (SMA): DISABLED
2023-04-08 14:38:18 :: 1.0.26 :: Processing 1 video files...
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: Processing Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.x264-PTer.mkv
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: 3 Audio Tracks Found!
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: 3 Subtitle Tracks Found!
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: Checking for preferred languages "eng,ger"
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: 1 "eng" Audio Tracks Found!
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: 1 "eng" Subtitle Tracks Found!
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: 0 "ger" Audio Tracks Found!
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: 0 "ger" Subtitle Tracks Found!
2023-04-08 14:38:18 :: 1.0.26 :: 1 of 1 :: Processing complete for: Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.x264-PTer.mkv!
2023-04-08 14:38:19 :: 1.0.26 :: Processing 1 video files...
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: Processing Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.x264-PTer.mkv
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: 3 Audio Tracks Found!
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: 3 Subtitle Tracks Found!
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: Checking for preferred languages "eng,ger"
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: 1 "eng" Audio Tracks Found!
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: 1 "eng" Subtitle Tracks Found!
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: 0 "ger" Audio Tracks Found!
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: 0 "ger" Subtitle Tracks Found!
2023-04-08 14:38:19 :: 1.0.26 :: 1 of 1 :: Processing complete for: Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.x264-PTer.mkv!
Post Processing Completed in 0 minutes and 1 seconds!

2023-04-08 14:35:16,329::INFO::[postproc:374] Starting Post-Processing on Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer => Repair:True, Unpack:True, Delete:True, Script:video-pp.bash, Cat:radarr
2023-04-08 14:35:16,330::INFO::[notifier:123] Sending notification: Post-processing - Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer (type=pp, job_cat=radarr)
2023-04-08 14:35:16,331::INFO::[postproc:728] Starting verification and repair of Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:35:16,332::INFO::[filesystem:1137] [N/A] /config/incomplete/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer/ADMIN/verified missing
2023-04-08 14:35:16,333::INFO::[postproc:751] Running verification and repair on set Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.x264-PTer
2023-04-08 14:35:16,344::INFO::[newsunpack:1123] Quick-check for Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.x264-PTer is OK, skipping repair
2023-04-08 14:35:16,354::INFO::[postproc:809] Verification and repair finished for Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:35:16,354::INFO::[filesystem:319] Checking if any resulting filenames need to be sanitized
2023-04-08 14:35:16,393::INFO::[filesystem:701] Creating directories: /data/usenet/Movies/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:35:16,396::INFO::[postproc:432] Running unpacker on Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:35:16,449::INFO::[newsunpack:293] Unrar starting on /config/incomplete/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:35:16,451::INFO::[newsunpack:559] Extracting rarfile /config/incomplete/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer/8lM36f1ieCqwWXs61D4foQhkM9P43.part001.rar (belonging to 8lM36f1ieCqwWXs61D4foQhkM9P43) to /data/usenet/Movies/_UNPACK_Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:35:16,452::INFO::[misc:806] Found a password that was set by the user: [removed]
2023-04-08 14:35:16,453::INFO::[misc:817] Read 1 passwords from meta data in NZB: [removed]
2023-04-08 14:35:16,454::INFO::[misc:1166] [N/A] Running external command: ['/usr/local/bin/unrar', 'e', '-idp', '-tsm-', '-scf', '-o-', '-or', '-ai', '-pMu7O8EMkvM48', '/config/incomplete/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer/8lM36f1ieCqwWXs61D4foQhkM9P43.part001.rar', '/data/usenet/Movies/_UNPACK_Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer/']

2023-04-08 14:38:16,809::INFO::[newsunpack:297] Unrar finished on /config/incomplete/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:38:18,112::INFO::[postproc:434] Unpacked files ['/data/usenet/Movies/_UNPACK_Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.x264-PTer.mkv']
2023-04-08 14:38:18,113::INFO::[filesystem:319] Checking if any resulting filenames need to be sanitized
2023-04-08 14:38:18,113::INFO::[postproc:438] Finished unpack_magic on Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer
2023-04-08 14:38:18,119::INFO::[postproc:533] Running deobfuscate
2023-04-08 14:38:18,125::INFO::[misc:1166] [N/A] Running external command: ['/config/scripts/video-pp.bash', '/data/usenet/Movies/Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer', 'Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer.nzb', 'Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer', '', 'radarr', 'alt.binaries.misc', '0', '']
2023-04-08 14:38:19,535::INFO::[nzbstuff:1797] [N/A] Purging data for job Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer (delete_all_data=True)
2023-04-08 14:38:19,536::INFO::[directunpacker:450] Aborting DirectUnpack for 8lM36f1ieCqwWXs61D4foQhkM9P43
2023-04-08 14:38:19,555::INFO::[notifier:123] Sending notification: Download Completed - Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer (type=complete, job_cat=radarr)
2023-04-08 14:38:19,634::INFO::[database:292] Added job Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer to history
2023-04-08 14:38:19,636::INFO::[postproc:129] Saving postproc queue
2023-04-08 14:38:19,638::INFO::[downloader:410] Post-processing finished, resuming download

*** added from radarr log ***
2023-04-08 14:50:18 :: QueueCleaner :: 1.0.3 :: Starting...
2023-04-08 14:50:18 :: QueueCleaner :: 1.0.3 :: 247649332 (Ikiru.1952.1080p.UHD.BluRay.FLAC1.0.X264-PTer) :: Removing Failed Queue Item from Radarr...

NVIDIA GPU

Is it possible to add nvidia GPU to this container with unraid? I'm not sure how I would go forward doing this.

Q: How to add new readarr script

Do I need to a fresh docker install or any way to use the new readarr script to suppot M4B conversion? How to set it up and make it work?

A Few Spelling Errors

1. UPDATE is spelt as "UDPATE"

In "Dockerfile"
ENV UDPATE_SMA FALSE
should be
ENV UPDATE_SMA FALSE

In "30-script-update.bash"
if [[ "${UDPATE_SMA}" == "TRUE" ]]; then
should be
if [[ "${UPDATE_SMA}" == "TRUE" ]]; then

2. storage is spelt as "stroage" and there are some double slashes

In "31-path-setup.bash"

# Create downloads incomplete directory
if [ ! -d "/stroage/downloads/sabnzbd/incomplete" ]; then
	mkdir -p "/stroage/downloads/sabnzbd/incomplete"
	chmod 0777 "/stroage/downloads/sabnzbd/incomplete"
fi

# Create downloads complete directory
if [ ! -d "/stroage//downloads/sabnzbd/complete" ]; then
	mkdir -p "/stroage//downloads/sabnzbd/complete"
	chmod 0777 "/stroage//downloads/sabnzbd/complete"
fi

should be

# Create downloads incomplete directory
if [ ! -d "/storage/downloads/sabnzbd/incomplete" ]; then
	mkdir -p "/storage/downloads/sabnzbd/incomplete"
	chmod 0777 "/storage/downloads/sabnzbd/incomplete"
fi

# Create downloads complete directory
if [ ! -d "/storage/downloads/sabnzbd/complete" ]; then
	mkdir -p "/storage/downloads/sabnzbd/complete"
	chmod 0777 "/storage/downloads/sabnzbd/complete"
fi

This is my first time creating an issue on GitHub so I apologise in advance for any weirdness

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.