{"id":13552169,"url":"https://github.com/RandomNinjaAtk/docker-amtd","last_synced_at":"2025-04-03T03:30:51.842Z","repository":{"id":37634934,"uuid":"285032183","full_name":"RandomNinjaAtk/docker-amtd","owner":"RandomNinjaAtk","description":"AMTD is a Radarr companion script to automatically download movie trailers and extras for use in other video applications (plex/kodi/jellyfin/emby) ","archived":true,"fork":false,"pushed_at":"2022-09-04T02:19:36.000Z","size":140,"stargazers_count":90,"open_issues_count":0,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-03T23:34:11.796Z","etag":null,"topics":["automation","bash","emby","jellyfin","kodi","plex","radarr","youtube-dl"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RandomNinjaAtk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["RandomNinjaAtk"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-08-04T16:09:12.000Z","updated_at":"2024-09-24T06:10:03.000Z","dependencies_parsed_at":"2023-01-17T17:00:33.615Z","dependency_job_id":null,"html_url":"https://github.com/RandomNinjaAtk/docker-amtd","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/RandomNinjaAtk%2Fdocker-amtd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomNinjaAtk%2Fdocker-amtd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomNinjaAtk%2Fdocker-amtd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RandomNinjaAtk%2Fdocker-amtd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RandomNinjaAtk","download_url":"https://codeload.github.com/RandomNinjaAtk/docker-amtd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933289,"owners_count":20857046,"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":["automation","bash","emby","jellyfin","kodi","plex","radarr","youtube-dl"],"created_at":"2024-08-01T12:02:00.029Z","updated_at":"2025-04-03T03:30:51.556Z","avatar_url":"https://github.com/RandomNinjaAtk.png","language":"Shell","readme":"# Deprecated\n\nThis repository is now deprecated, will no longer be updated and is being archived. Please visit the new project/replacement:\n* [https://github.com/RandomNinjaAtk/docker-radarr-extended](https://github.com/RandomNinjaAtk/docker-radarr-extended)\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n# AMTD - Automated Movie Trailer Downloader \n\n[RandomNinjaAtk/amtd](https://github.com/RandomNinjaAtk/docker-amtd) is a Radarr companion script to automatically download movie trailers and extras for use in other video applications (plex/kodi/jellyfin/emby) \n\n[![RandomNinjaAtk/amtd](https://raw.githubusercontent.com/RandomNinjaAtk/unraid-templates/master/randomninjaatk/img/amtd.png)](https://github.com/RandomNinjaAtk/docker-amtd)\n\n\n## Features\n* Downloading **Movie Trailers** and **Extras** using online sources for use in popular applications (Plex/Kodi/Emby/Jellyfin): \n  * Connects to Radarr to automatically download trailers for Movies in your existing library\n  * Downloads videos using youtube-dl automatically\n  * Names videos correctly to match Plex/Emby naming convention (Emby not tested)\n  * Embeds relevant metadata into each video\n  \n\n### Plex Example\n![](https://raw.githubusercontent.com/RandomNinjaAtk/docker-amtd/master/.github/amvtd-plex-example.jpg)\n\n\n## Supported Architectures\n\nThe architectures supported by this image are:\n\n| Architecture | Tag |\n| :----: | --- |\n| x86-64 | latest |\n\n## Version Tags\n\n| Tag | Description |\n| :----: | --- |\n| latest | Newest release code |\n\n\n## Parameters\n\nContainer images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `\u003cexternal\u003e:\u003cinternal\u003e` 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.\n\n| Parameter | Function |\n| --- | --- |\n| `-e PUID=1000` | for UserID - see below for explanation |\n| `-e PGID=1000` | for GroupID - see below for explanation |\n| `-v /config` | Configuration files for AMTD. |\n| `-v /change/me/to/match/radarr` | Configure this volume to match your Radarr Radarr's volume mappings associated with Radarr's Library Root Folder settings |\n| `-e AUTOSTART=true` | true = Enabled :: Runs script automatically on startup |\n| `-e SCRIPTINTERVAL=1h` | #s or #m or #h or #d :: s = seconds, m = minutes, h = hours, d = days :: Amount of time between each script run, when AUTOSTART is enabled|\n| `-e RadarrUrl=http://x.x.x.x:7878` | Set domain or IP to your Radarr instance including port. If using reverse proxy, do not use a trailing slash. Ensure you specify http/s. |\n| `-e RadarrAPIkey=08d108d108d108d108d108d108d108d1` | Radarr API key. |\n| `-e extrastype=all` | all or trailers :: all downloads all available videos (trailers, clips, featurette, etc...) :: trailers only downloads trailers |\n| `-e LANGUAGES=en,de` | Set the primary desired language, if not found, fallback to next langauge in the list... (this is a \",\" separated list of ISO 639-1 language codes) |\n| `-e videoformat=\"--format bestvideo[vcodec*=avc1]+bestaudio\"` | For guidence, please see youtube-dl documentation |\n| `-e subtitlelanguage=en` | Desired Language Code :: For guidence, please see youtube-dl documentation. |\n| `-e USEFOLDERS=false` | true = enabled :: Creates subfolders within the movie folder for extras |\n| `-e EndClient=plex` | plex or emby or jellyfin :: Select the appropriate client for maximum compatibility |\n| `-e PREFER_EXISTING=false` | true = enabled :: Checks for existing \"trailer\" file, and skips it if found |\n| `-e SINGLETRAILER=true` | true = enabled :: Only downloads the first available trailer, does not apply to other extras type |\n| `-e FilePermissions=644` | Based on chmod linux permissions |\n| `-e FolderPermissions=755` | Based on chmod linux permissions |\n\n### docker\n\n```\ndocker create \\\n  --name=amtd \\\n  -v /path/to/config/files:/config \\\n  -v /change/me/to/match/radarr:/change/me/to/match/radarr \\\n  -e PUID=1000 \\\n  -e PGID=1000 \\\n  -e AUTOSTART=true \\\n  -e SCRIPTINTERVAL=1h \\\n  -e extrastype=all \\\n  -e LANGUAGES=en,de \\\n  -e videoformat=\"--format bestvideo[vcodec*=avc1]+bestaudio\" \\\n  -e subtitlelanguage=en \\\n  -e USEFOLDERS=false \\\n  -e PREFER_EXISTING=false \\\n  -e SINGLETRAILER=true \\\n  -e FilePermissions=644 \\\n  -e FolderPermissions=755 \\\n  -e RadarrUrl=http://x.x.x.x:7878 \\\n  -e RadarrAPIkey=RADARRAPIKEY \\\n  -e EndClient=plex \\\n  --restart unless-stopped \\\n  randomninjaatk/amtd \n```\n\n\n### docker-compose\n\nCompatible with docker-compose v2 schemas.\n\n```\nversion: \"2.1\"\nservices:\n  amtd:\n    image: randomninjaatk/amtd \n    container_name: amtd\n    volumes:\n      - /path/to/config/files:/config\n      - /change/me/to/match/radarr:/change/me/to/match/radarr\n    environment:\n      - PUID=1000\n      - PGID=1000\n      - AUTOSTART=true\n      - SCRIPTINTERVAL=1h\n      - extrastype=all\n      - LANGUAGES=en,de\n      - videoformat=--format bestvideo[vcodec*=avc1]+bestaudio\n      - subtitlelanguage=en\n      - USEFOLDERS=false\n      - SINGLETRAILER=true\n      - PREFER_EXISTING=false\n      - FilePermissions=644\n      - FolderPermissions=755\n      - RadarrUrl=http://x.x.x.x:7878\n      - RadarrAPIkey=RADARRAPIKEY\n      - EndClient=plex\n    restart: unless-stopped\n```\n\n# Script Information\n* Script will automatically run when enabled, if disabled, you will need to manually execute with the following command:\n  * From Host CLI: `docker exec -it amtd /bin/bash -c 'bash /config/scripts/download.bash'`\n  * From Docker CLI: `bash /config/scripts/download.bash`\n  \n## Directories:\n* \u003cstrong\u003e/config/scripts\u003c/strong\u003e\n  * Contains the scripts that are run\n* \u003cstrong\u003e/config/logs\u003c/strong\u003e\n  * Contains the log output from the script\n* \u003cstrong\u003e/config/cache\u003c/strong\u003e\n  * Contains the artist data cache to speed up processes\n* \u003cstrong\u003e/config/coookies\u003c/strong\u003e\n  * Store your cookies.txt file in this location, may be required for youtube-dl to work properly\n  \n  \n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n  \n \n# Credits\n- [ffmpeg](https://ffmpeg.org/)\n- [youtube-dl](https://ytdl-org.github.io/youtube-dl/index.html)\n- [Radarr](https://radarr.video/)\n- [The Movie Database](https://www.themoviedb.org/)\n- Icons made by \u003ca href=\"http://www.freepik.com/\" title=\"Freepik\"\u003eFreepik\u003c/a\u003e from \u003ca href=\"https://www.flaticon.com/\" title=\"Flaticon\"\u003e www.flaticon.com\u003c/a\u003e\n","funding_links":["https://github.com/sponsors/RandomNinjaAtk"],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRandomNinjaAtk%2Fdocker-amtd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRandomNinjaAtk%2Fdocker-amtd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRandomNinjaAtk%2Fdocker-amtd/lists"}