Merge pull request #7 from RandomNinjaAtk/dev

Support for new SMA settings
pull/8/head
RandomNinjaAtk 5 years ago committed by GitHub
commit fe97bad36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,6 +20,7 @@ ENV AUDIO_BEETSTAGGING TRUE
ENV CONVERTER_THREADS="0" ENV CONVERTER_THREADS="0"
ENV CONVERTER_OUTPUT_FORMAT="mp4" ENV CONVERTER_OUTPUT_FORMAT="mp4"
ENV CONVERTER_OUTPUT_EXTENSION="mp4" ENV CONVERTER_OUTPUT_EXTENSION="mp4"
ENV CONVERTER_MINIMUM_SIZE="0"
ENV CONVERTER_SORT_STREAMS="True" ENV CONVERTER_SORT_STREAMS="True"
ENV CONVERTER_PROCESS_SAME_EXTENSIONS="False" ENV CONVERTER_PROCESS_SAME_EXTENSIONS="False"
ENV CONVERTER_FORCE_CONVERT="False" ENV CONVERTER_FORCE_CONVERT="False"
@ -35,7 +36,7 @@ ENV METADATA_DOWNLOAD_ARTWORK="poster"
ENV METADATA_PRESERVE_SOURCE_DISPOSITION="True" ENV METADATA_PRESERVE_SOURCE_DISPOSITION="True"
# video settings # video settings
ENV VIDEO_CODEC="h264, x264" ENV VIDEO_CODEC="h264, x264"
ENV VIDEO_BITRATE="0" ENV VIDEO_MAX_BITRATE="0"
ENV VIDEO_CRF="-1" ENV VIDEO_CRF="-1"
ENV VIDEO_CRF_PROFILES="" ENV VIDEO_CRF_PROFILES=""
ENV VIDEO_MAX_WIDTH="0" ENV VIDEO_MAX_WIDTH="0"
@ -70,13 +71,15 @@ ENV SUBTITLE_LANGUAGES=""
ENV SUBTITLE_DEFAULT_LANGUAGE="" ENV SUBTITLE_DEFAULT_LANGUAGE=""
ENV SUBTITLE_FIRST_STREAM_OF_LANGUAGE="False" ENV SUBTITLE_FIRST_STREAM_OF_LANGUAGE="False"
ENV SUBTITLE_ENCODING="" ENV SUBTITLE_ENCODING=""
ENV SUBTITLE_BURN_SUBTITLES="" ENV SUBTITLE_BURN_SUBTITLES="False"
ENV SUBTITLE_BURN_DISPOSITIONS="forced"
ENV SUBTITLE_DOWNLOAD_SUBS="False" ENV SUBTITLE_DOWNLOAD_SUBS="False"
ENV SUBTITLE_DOWNLOAD_HEARING_IMPAIRED_SUBS="False" ENV SUBTITLE_DOWNLOAD_HEARING_IMPAIRED_SUBS="False"
ENV SUBTITLE_DOWNLOAD_PROVIDERS="" ENV SUBTITLE_DOWNLOAD_PROVIDERS=""
ENV SUBTITLE_EMBED_SUBS="True" ENV SUBTITLE_EMBED_SUBS="True"
ENV SUBTITLE_EMBED_IMAGE_SUBS="False" ENV SUBTITLE_EMBED_IMAGE_SUBS="False"
ENV SUBTITLE_EMBED_ONLY_INTERNAL_SUBS="False" ENV SUBTITLE_EMBED_ONLY_INTERNAL_SUBS="False"
ENV SUBTITLE_FILENAME_DISPOSITIONS="forced"
ENV SUBTITLE_IGNORE_EMBEDDED_SUBS="False" ENV SUBTITLE_IGNORE_EMBEDDED_SUBS="False"
ENV SUBTITLE_ATTACHMENT_CODEC="" ENV SUBTITLE_ATTACHMENT_CODEC=""

@ -22,6 +22,8 @@ def main():
safeConfigParser.set("Converter", "output-format", os.environ.get("CONVERTER_OUTPUT_FORMAT")) safeConfigParser.set("Converter", "output-format", os.environ.get("CONVERTER_OUTPUT_FORMAT"))
if os.environ.get("CONVERTER_OUTPUT_EXTENSION"): if os.environ.get("CONVERTER_OUTPUT_EXTENSION"):
safeConfigParser.set("Converter", "output-extension", os.environ.get("CONVERTER_OUTPUT_EXTENSION")) safeConfigParser.set("Converter", "output-extension", os.environ.get("CONVERTER_OUTPUT_EXTENSION"))
if os.environ.get("CONVERTER_MINIMUM_SIZE"):
safeConfigParser.set("Converter", "minimum-size", os.environ.get("CONVERTER_MINIMUM_SIZE"))
if os.environ.get("CONVERTER_SORT_STREAMS"): if os.environ.get("CONVERTER_SORT_STREAMS"):
safeConfigParser.set("Converter", "sort-streams", os.environ.get("CONVERTER_SORT_STREAMS")) safeConfigParser.set("Converter", "sort-streams", os.environ.get("CONVERTER_SORT_STREAMS"))
if os.environ.get("CONVERTER_PROCESS_SAME_EXTENSIONS"): if os.environ.get("CONVERTER_PROCESS_SAME_EXTENSIONS"):
@ -52,8 +54,8 @@ def main():
# Set Video Settings # Set Video Settings
if os.environ.get("VIDEO_CODEC"): if os.environ.get("VIDEO_CODEC"):
safeConfigParser.set("Video", "codec", os.environ.get("VIDEO_CODEC")) safeConfigParser.set("Video", "codec", os.environ.get("VIDEO_CODEC"))
if os.environ.get("VIDEO_BITRATE"): if os.environ.get("VIDEO_MAX_BITRATE"):
safeConfigParser.set("Video", "bitrate", os.environ.get("VIDEO_BITRATE")) safeConfigParser.set("Video", "max-bitrate", os.environ.get("VIDEO_MAX_BITRATE"))
if os.environ.get("VIDEO_CRF"): if os.environ.get("VIDEO_CRF"):
safeConfigParser.set("Video", "crf", os.environ.get("VIDEO_CRF")) safeConfigParser.set("Video", "crf", os.environ.get("VIDEO_CRF"))
if os.environ.get("VIDEO_CRF_PROFILES"): if os.environ.get("VIDEO_CRF_PROFILES"):
@ -124,6 +126,8 @@ def main():
safeConfigParser.set("Subtitle", "encoding", os.environ.get("SUBTITLE_ENCODING")) safeConfigParser.set("Subtitle", "encoding", os.environ.get("SUBTITLE_ENCODING"))
if os.environ.get("SUBTITLE_BURN_SUBTITLES"): if os.environ.get("SUBTITLE_BURN_SUBTITLES"):
safeConfigParser.set("Subtitle", "burn-subtitles", os.environ.get("SUBTITLE_BURN_SUBTITLES")) safeConfigParser.set("Subtitle", "burn-subtitles", os.environ.get("SUBTITLE_BURN_SUBTITLES"))
if os.environ.get("SUBTITLE_BURN_DISPOSITIONS"):
safeConfigParser.set("Subtitle", "burn-dispositions", os.environ.get("SUBTITLE_BURN_DISPOSITIONS"))
if os.environ.get("SUBTITLE_DOWNLOAD_SUBS"): if os.environ.get("SUBTITLE_DOWNLOAD_SUBS"):
safeConfigParser.set("Subtitle", "download-subs", os.environ.get("SUBTITLE_DOWNLOAD_SUBS")) safeConfigParser.set("Subtitle", "download-subs", os.environ.get("SUBTITLE_DOWNLOAD_SUBS"))
if os.environ.get("SUBTITLE_DOWNLOAD_HEARING_IMPAIRED_SUBS"): if os.environ.get("SUBTITLE_DOWNLOAD_HEARING_IMPAIRED_SUBS"):
@ -136,6 +140,8 @@ def main():
safeConfigParser.set("Subtitle", "embed-image-subs", os.environ.get("SUBTITLE_EMBED_IMAGE_SUBS")) safeConfigParser.set("Subtitle", "embed-image-subs", os.environ.get("SUBTITLE_EMBED_IMAGE_SUBS"))
if os.environ.get("SUBTITLE_EMBED_ONLY_INTERNAL_SUBS"): if os.environ.get("SUBTITLE_EMBED_ONLY_INTERNAL_SUBS"):
safeConfigParser.set("Subtitle", "embed-only-internal-subs", os.environ.get("SUBTITLE_EMBED_ONLY_INTERNAL_SUBS")) safeConfigParser.set("Subtitle", "embed-only-internal-subs", os.environ.get("SUBTITLE_EMBED_ONLY_INTERNAL_SUBS"))
if os.environ.get("SUBTITLE_FILENAME_DISPOSITIONS"):
safeConfigParser.set("Subtitle", "filename-dispositions", os.environ.get("SUBTITLE_FILENAME_DISPOSITIONS"))
if os.environ.get("SUBTITLE_IGNORE_EMBEDDED_SUBS"): if os.environ.get("SUBTITLE_IGNORE_EMBEDDED_SUBS"):
safeConfigParser.set("Subtitle", "ignore-embedded-subs", os.environ.get("SUBTITLE_IGNORE_EMBEDDED_SUBS")) safeConfigParser.set("Subtitle", "ignore-embedded-subs", os.environ.get("SUBTITLE_IGNORE_EMBEDDED_SUBS"))
if os.environ.get("SUBTITLE_ATTACHMENT_CODEC"): if os.environ.get("SUBTITLE_ATTACHMENT_CODEC"):

Loading…
Cancel
Save