From 497b7169ab2135599e8ebd2a0d894a7e7e64d008 Mon Sep 17 00:00:00 2001 From: LooseSeal2 Date: Sun, 21 Jul 2019 00:27:50 -0700 Subject: [PATCH] add mp4 templates --- apps/templates/broken/kodi-headless.yml | 78 ------------------- apps/templates/broken/nzbthrottle.yml | 76 ------------------ .../config_mp4_automator/autoProcess.ini | 55 +++++++++++++ .../radarr4k/scripts/cleanup-radarr.sh | 5 ++ .../config_mp4_automator/autoProcess.ini | 55 +++++++++++++ .../radarrhdr/scripts/cleanup-radarr.sh | 5 ++ .../config_mp4_automator/autoProcess.ini | 55 +++++++++++++ .../config_mp4_automator/autoProcess.ini | 55 +++++++++++++ 8 files changed, 230 insertions(+), 154 deletions(-) delete mode 100644 apps/templates/broken/kodi-headless.yml delete mode 100644 apps/templates/broken/nzbthrottle.yml create mode 100644 apps/templates/radarr4k/config_mp4_automator/autoProcess.ini create mode 100644 apps/templates/radarr4k/scripts/cleanup-radarr.sh create mode 100644 apps/templates/radarrhdr/config_mp4_automator/autoProcess.ini create mode 100644 apps/templates/radarrhdr/scripts/cleanup-radarr.sh create mode 100644 apps/templates/sonarr4k/config_mp4_automator/autoProcess.ini create mode 100644 apps/templates/sonarrhdr/config_mp4_automator/autoProcess.ini diff --git a/apps/templates/broken/kodi-headless.yml b/apps/templates/broken/kodi-headless.yml deleted file mode 100644 index 33aeb0a..0000000 --- a/apps/templates/broken/kodi-headless.yml +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/bash -# -# Title: PGBlitz (linuxserver/kodi-headless) -# Author(s): MrDoob -# URL: https://pgblitz.com - http://github.pgblitz.com -# GNU: General Public License v3.0 -################################################################################ ---- -- hosts: localhost - gather_facts: false - tasks: - # FACTS ####################################################################### - - name: 'Set Known Facts' - set_fact: - pgrole: 'kodi-headless' - intport: '8080' - extport: '8088' - intport2: '9090' - extport2: '9099' - intport3: '9777' - extport3: '9777/udp' - image: 'linuxserver/kodi-headless:latest' - - # CORE (MANDATORY) ############################################################ - - name: 'Including cron job' - include_tasks: '/opt/communityapps/apps/_core.yml' - - # LABELS ###################################################################### - - name: 'Adding Traefik' - set_fact: - pg_labels: - traefik.enable: 'true' - traefik.port: '{{intport}}' - traefik.frontend.auth.forward.address: '{{gauth}}' - traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}}{{tldset}}{{cname}}' - traefik.frontend.headers.SSLHost: '{{domain.stdout}}' - traefik.frontend.headers.SSLRedirect: 'true' - traefik.frontend.headers.STSIncludeSubdomains: 'true' - traefik.frontend.headers.STSPreload: 'true' - traefik.frontend.headers.STSSeconds: '315360000' - traefik.frontend.headers.browserXSSFilter: 'true' - traefik.frontend.headers.contentTypeNosniff: 'true' - traefik.frontend.headers.customResponseHeaders: 'X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex' - traefik.frontend.headers.forceSTSHeader: 'true' - - - name: 'Setting PG Volumes' - set_fact: - pg_volumes: - - '/etc/localtime:/etc/localtime:ro' - - '{{path.stdout}}:{{path.stdout}}' - - '/mnt:/mnt' - - '/opt/appdata/{{pgrole}}/config:/config/.kodi:rw' - - - name: 'Setting PG ENV' - set_fact: - pg_env: - PUID: '1000' - PGID: '1000' - - # MAIN DEPLOYMENT ############################################################# - - name: 'Deploying {{pgrole}}' - docker_container: - name: '{{pgrole}}' - image: '{{image}}' - pull: yes - published_ports: - - '{{extport}}:{{intport}}' - - '{{extport2}}:{{intport2}}' - - '{{extport3}}:{{intport3}}' - volumes: '{{pg_volumes}}' - env: '{{pg_env}}' - restart_policy: always - networks: - - name: plexguide - aliases: - - '{{pgrole}}' - state: started - labels: '{{pg_labels}}' diff --git a/apps/templates/broken/nzbthrottle.yml b/apps/templates/broken/nzbthrottle.yml deleted file mode 100644 index 785547d..0000000 --- a/apps/templates/broken/nzbthrottle.yml +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/bash -# -# Title: PGBlitz (Reference Title File) -# Author(s): Admin9705 -# URL: https://pgblitz.com - http://github.pgblitz.com -# GNU: General Public License v3.0 -################################################################################ ---- -- hosts: localhost - gather_facts: false - tasks: - # FACTS ####################################################################### - - name: 'Set Known Facts' - set_fact: - pgrole: 'nzbthrottle' - intport: '0' - extport: '0' - image: 'daghaian/nzbthrottle' - - # CORE (MANDATORY) ############################################################ - - name: 'Including cron job' - include_tasks: '/opt/communityapps/apps/_core.yml' - - - name: 'Checking {{pgrole}} for existing app data' - stat: - path: '/opt/communityapps/apps/templates/{{pgrole}}/config.json' - register: jsoncheck - - # LABELS ###################################################################### - - name: 'Adding Traefik' - set_fact: - pg_labels: - traefik.frontend.auth.forward.address: '{{gauth}}' - traefik.enable: 'true' - traefik.port: '{{intport}}' - - traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}}{{tldset}}{{cname}}' - traefik.frontend.headers.SSLHost: '{{domain.stdout}}' - traefik.frontend.headers.SSLRedirect: 'true' - traefik.frontend.headers.STSIncludeSubdomains: 'true' - traefik.frontend.headers.STSPreload: 'true' - traefik.frontend.headers.STSSeconds: '315360000' - traefik.frontend.headers.browserXSSFilter: 'true' - traefik.frontend.headers.contentTypeNosniff: 'true' - traefik.frontend.headers.customResponseHeaders: 'X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex' - traefik.frontend.headers.forceSTSHeader: 'true' - - - name: 'Setting PG Volumes' - set_fact: - pg_volumes: - - '/etc/localtime:/etc/localtime:ro' - - '/opt/appdata/{{pgrole}}:/{{pgrole}}' - - - name: 'Setting PG ENV' - set_fact: - pg_env: - PUID: '1000' - PGID: '1000' - - # MAIN DEPLOYMENT ############################################################# - - name: 'Deploying {{pgrole}}' - docker_container: - name: '{{pgrole}}' - image: '{{image}}' - pull: yes - published_ports: - - '{{ports.stdout}}{{extport}}:{{intport}}' - volumes: '{{pg_volumes}}' - env: '{{pg_env}}' - restart_policy: unless-stopped - networks: - - name: plexguide - aliases: - - '{{pgrole}}' - state: started - labels: '{{pg_labels}}' diff --git a/apps/templates/radarr4k/config_mp4_automator/autoProcess.ini b/apps/templates/radarr4k/config_mp4_automator/autoProcess.ini new file mode 100644 index 0000000..9683be4 --- /dev/null +++ b/apps/templates/radarr4k/config_mp4_automator/autoProcess.ini @@ -0,0 +1,55 @@ +[Radarr] +host = localhost +port = 7878 +web_root = +ssl = False +apikey = + +[MP4] +ffmpeg = /usr/bin/ffmpeg +ffprobe = /usr/bin/ffprobe +threads = auto +output_directory = +copy_to = +move_to = +output_extension = mp4 +output_format = mp4 +delete_original = True +relocate_moov = True +video-codec = h264,x264 +video-bitrate = +video-crf = +video-max-width = +video-profile = +h264-max-level = +use-qsv-decoder-with-encoder = True +use-hevc-qsv-decoder = False +enable_dxva2_gpu_decode = False +ios-audio = True +ios-first-track-only = False +ios-audio-filter = +ios-move-last = False +max-audio-channels = +audio-codec = ac3 +audio-language = +audio-default-language = +audio-channel-bitrate = +audio-filter = +audio-copy-original = False +subtitle-codec = mov_text +subtitle-language = +subtitle-default-language = +subtitle-encoding = +fullpathguess = True +convert-mp4 = False +tagfile = True +tag-language = en +download-artwork = Poster +download-subs = False +embed-subs = True +embed-only-internal-subs = False +sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles +permissions = 0777 +post-process = False +pix-fmt = +aac_adtstoasc = False diff --git a/apps/templates/radarr4k/scripts/cleanup-radarr.sh b/apps/templates/radarr4k/scripts/cleanup-radarr.sh new file mode 100644 index 0000000..b4c38f5 --- /dev/null +++ b/apps/templates/radarr4k/scripts/cleanup-radarr.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [ -d "$radarr_moviefile_sourcefolder" ] && [ "$(basename $radarr_moviefile_sourcefolder)" = "deluge_extracted" ] ; then + /bin/rm -rf $radarr_moviefile_sourcefolder +fi \ No newline at end of file diff --git a/apps/templates/radarrhdr/config_mp4_automator/autoProcess.ini b/apps/templates/radarrhdr/config_mp4_automator/autoProcess.ini new file mode 100644 index 0000000..9683be4 --- /dev/null +++ b/apps/templates/radarrhdr/config_mp4_automator/autoProcess.ini @@ -0,0 +1,55 @@ +[Radarr] +host = localhost +port = 7878 +web_root = +ssl = False +apikey = + +[MP4] +ffmpeg = /usr/bin/ffmpeg +ffprobe = /usr/bin/ffprobe +threads = auto +output_directory = +copy_to = +move_to = +output_extension = mp4 +output_format = mp4 +delete_original = True +relocate_moov = True +video-codec = h264,x264 +video-bitrate = +video-crf = +video-max-width = +video-profile = +h264-max-level = +use-qsv-decoder-with-encoder = True +use-hevc-qsv-decoder = False +enable_dxva2_gpu_decode = False +ios-audio = True +ios-first-track-only = False +ios-audio-filter = +ios-move-last = False +max-audio-channels = +audio-codec = ac3 +audio-language = +audio-default-language = +audio-channel-bitrate = +audio-filter = +audio-copy-original = False +subtitle-codec = mov_text +subtitle-language = +subtitle-default-language = +subtitle-encoding = +fullpathguess = True +convert-mp4 = False +tagfile = True +tag-language = en +download-artwork = Poster +download-subs = False +embed-subs = True +embed-only-internal-subs = False +sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles +permissions = 0777 +post-process = False +pix-fmt = +aac_adtstoasc = False diff --git a/apps/templates/radarrhdr/scripts/cleanup-radarr.sh b/apps/templates/radarrhdr/scripts/cleanup-radarr.sh new file mode 100644 index 0000000..b4c38f5 --- /dev/null +++ b/apps/templates/radarrhdr/scripts/cleanup-radarr.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +if [ -d "$radarr_moviefile_sourcefolder" ] && [ "$(basename $radarr_moviefile_sourcefolder)" = "deluge_extracted" ] ; then + /bin/rm -rf $radarr_moviefile_sourcefolder +fi \ No newline at end of file diff --git a/apps/templates/sonarr4k/config_mp4_automator/autoProcess.ini b/apps/templates/sonarr4k/config_mp4_automator/autoProcess.ini new file mode 100644 index 0000000..14efd40 --- /dev/null +++ b/apps/templates/sonarr4k/config_mp4_automator/autoProcess.ini @@ -0,0 +1,55 @@ +[Sonarr] +host = localhost +port = 8989 +web_root = +ssl = False +apikey = + +[MP4] +ffmpeg = /usr/bin/ffmpeg +ffprobe = /usr/bin/ffprobe +threads = auto +output_directory = +copy_to = +move_to = +output_extension = mp4 +output_format = mp4 +delete_original = True +relocate_moov = True +video-codec = h264,x264 +video-bitrate = +video-crf = +video-max-width = +video-profile = +h264-max-level = +use-qsv-decoder-with-encoder = True +use-hevc-qsv-decoder = False +enable_dxva2_gpu_decode = False +ios-audio = True +ios-first-track-only = False +ios-audio-filter = +ios-move-last = False +max-audio-channels = +audio-codec = ac3 +audio-language = +audio-default-language = +audio-channel-bitrate = +audio-filter = +audio-copy-original = False +subtitle-codec = mov_text +subtitle-language = +subtitle-default-language = +subtitle-encoding = +fullpathguess = True +convert-mp4 = False +tagfile = True +tag-language = en +download-artwork = Poster +download-subs = False +embed-subs = True +embed-only-internal-subs = False +sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles +permissions = 0777 +post-process = False +pix-fmt = +aac_adtstoasc = False diff --git a/apps/templates/sonarrhdr/config_mp4_automator/autoProcess.ini b/apps/templates/sonarrhdr/config_mp4_automator/autoProcess.ini new file mode 100644 index 0000000..14efd40 --- /dev/null +++ b/apps/templates/sonarrhdr/config_mp4_automator/autoProcess.ini @@ -0,0 +1,55 @@ +[Sonarr] +host = localhost +port = 8989 +web_root = +ssl = False +apikey = + +[MP4] +ffmpeg = /usr/bin/ffmpeg +ffprobe = /usr/bin/ffprobe +threads = auto +output_directory = +copy_to = +move_to = +output_extension = mp4 +output_format = mp4 +delete_original = True +relocate_moov = True +video-codec = h264,x264 +video-bitrate = +video-crf = +video-max-width = +video-profile = +h264-max-level = +use-qsv-decoder-with-encoder = True +use-hevc-qsv-decoder = False +enable_dxva2_gpu_decode = False +ios-audio = True +ios-first-track-only = False +ios-audio-filter = +ios-move-last = False +max-audio-channels = +audio-codec = ac3 +audio-language = +audio-default-language = +audio-channel-bitrate = +audio-filter = +audio-copy-original = False +subtitle-codec = mov_text +subtitle-language = +subtitle-default-language = +subtitle-encoding = +fullpathguess = True +convert-mp4 = False +tagfile = True +tag-language = en +download-artwork = Poster +download-subs = False +embed-subs = True +embed-only-internal-subs = False +sub-providers = addic7ed,podnapisi,thesubdb,opensubtitles +permissions = 0777 +post-process = False +pix-fmt = +aac_adtstoasc = False