{"id":20558878,"url":"https://github.com/mdhiggins/sonarr-sma","last_synced_at":"2025-07-05T20:36:45.803Z","repository":{"id":45976191,"uuid":"140889066","full_name":"mdhiggins/sonarr-sma","owner":"mdhiggins","description":"Sonarr docker based on linuxserver/sonarr with SMA built in using python3","archived":false,"fork":false,"pushed_at":"2024-11-16T20:49:13.000Z","size":172,"stargazers_count":39,"open_issues_count":0,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-11T04:51:15.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdhiggins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-13T20:12:49.000Z","updated_at":"2024-11-16T20:43:27.000Z","dependencies_parsed_at":"2024-02-29T12:01:26.920Z","dependency_job_id":"3d8d79eb-69ba-480a-880b-cf470c879da9","html_url":"https://github.com/mdhiggins/sonarr-sma","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fsonarr-sma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fsonarr-sma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fsonarr-sma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdhiggins%2Fsonarr-sma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdhiggins","download_url":"https://codeload.github.com/mdhiggins/sonarr-sma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230431100,"owners_count":18224655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T03:47:27.090Z","updated_at":"2024-12-19T12:09:16.624Z","avatar_url":"https://github.com/mdhiggins.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Official SMA container based on linuxserver/sonarr\n\nDocker container for Sonarr that includes all FFMPEG and python requirements to run SMA with Sonarr.\n\n## Version Tags\n\n|Tag|Description|\n|---|---|\n|latest|Stable release from linuxserver/sonarr with FFMPEG compiled from linuxserver/ffmpeg|\n|develop|Develop release from linuxserver/sonarr with FFMPEG compiled from linuxserver/ffmpeg|\n\n## Usage\n\n### docker-compose\n~~~yml\nservices:\n  sonarr:\n    image: mdhiggins/sonarr-sma\n    container_name: sonarr\n    volumes:\n      - /opt/appdata/sonarr:/config\n      - /opt/appdata/sma:/usr/local/sma/config\n      - /mnt/storage/tv:/tv\n      - /mnt/storage/downloads:/downloads\n    ports:\n      - 8989:8989\n    restart: always\n    environment:\n      - PUID=${PUID}\n      - PGID=${PGID}\n~~~\n\n### autoProcess.ini\n- Mount autoProcess.ini containing directory to `/usr/local/sma/config` using volumes\n - Consider making this writable as new options will be auto written to the config as they are added\n- Sonarr configuration options are read from `config.xml` inside the container and injected at runtime into `autoProcess.ini`\n - ffmpeg\n - ffprobe\n - host (read from environment variable or set to 127.0.0.1)\n - web_root\n - port\n - ssl\n\n### Python Environment\nThe script installs all dependencies in a virtual environment, not the container/system level Python environment. In order to use the Python environment with the dependencies installed, please execute using `/usr/local/sma/venv/bin/python3`. Use this same Python executable if using manual.py\n\n## Configuring Sonarr\n\n###  Enable completed download handling\n- Settings \u003e Download Client \u003e Completed Download Handling \u003e Enable: Yes\n\n### Add Custom Script\n- Settings \u003e Connect \u003e + Add \u003e Custom Script\n\n|Parameter|Value|\n|---|---|\n|On Grab| No|\n|On Import| Yes|\n|On Upgrade| Yes|\n|On Rename| No|\n|Path|`/usr/local/sma/postSonarr.sh`|\n\n**Make sure you're using the .sh file, no the .py file, the .sh file points to the appropriate virtual environment**\n\n## Logs\n\nLocated at `/usr/local/sma/config/sma.log` inside the container and your mounted config folder\n\n## Environment Variables\n|Variable|Description|\n|---|---|\n|PUID|User ID|\n|PGID|Group ID|\n|HOST|Local IP address for callback requests, default `127.0.0.1`|\n|SMA_PATH|`/usr/local/sma`|\n|SMA_UPDATE|Default `false`. Set `true` to pull git update of SMA on restart|\n|SMA_FFMPEG_URL|If provided, override linuxserver/ffmpeg with a static build provided by the URL|\n|SMA_STRIP_COMPONENTS|Default `1`. Number of components to strip from your tar.xz file when extracting so that FFmpeg binaries land in `/usr/local/bin`|\n\n## Hardware Acceleration\nThe default image is built with [linuxserver/ffmpeg](https://hub.docker.com/r/linuxserver/ffmpeg), which supports VAAPI, QSV, and NVEnc/NVDec.\n\nFor VAAPI/QSV, you need to mount the hardware device from `/dev/dri`. \n\nNvidia GPU support requires the `nvidia` runtime, available by installing [nvidia-container-toolkit](https://github.com/NVIDIA/nvidia-container-toolkit).\n\n### VAAPI docker-compose sample\n~~~yml\nservices:\n  sonarr:\n    container_name: sonarr\n    devices:\n      - /dev/dri/renderD128:/dev/dri/renderD128\n~~~\n\n### NVIDIA / NVEnc  NVDec docker-compose sample\n~~~yml\nservices:\n  sonarr:\n    container_name: sonarr\n    runtime: nvidia\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdhiggins%2Fsonarr-sma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdhiggins%2Fsonarr-sma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdhiggins%2Fsonarr-sma/lists"}