holy shit, this script downloads shit from crunchyroll and then does a bunch of post-processing shit on it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

simulcaster.conf.example 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #!/usr/bin/env simulcaster --override-main-config
  2. # /simulcaster/
  3. # main configuration file
  4. # copyright (c) 2019 coltondrg
  5. # /simulcaster/ needs a working directory to work correctly. We recommend that this directory is either empty, or only contains files related to /simulcaster/ to avoid causing havoc.
  6. SIMULCASTER_WORK_DIR="." # For running in place
  7. #SIMULCASTER_WORK_DIR="$HOME/simulcaster" # If you're installing (any mode)
  8. #SIMULCASTER_WORK_DIR="$HOME/.simulcaster" # Stealth mode (any install mode)
  9. # The Crunchyroll source dumper
  10. SIMULCASTER_CRUNCHYROLL_ENABLE=1
  11. SIMULCASTER_CRUNCHYROLL_AUTH="$SIMULCASTER_WORK_DIR/crunchyroll.authcookies" # /simulcaster/ will use this file (in cookies.txt format) to authenticate to Crunchyroll. Use your web browser to generate the file.
  12. SIMULCASTER_CRUNCHYROLL_BINARY="youtube-dl"
  13. SIMULCASTER_CRUNCHYROLL_SUB_LANG="enUS"
  14. SIMULCASTER_CRUNCHYROLL_HARVEST=1 # If enabled, the script will try to harvest episode data from Crunchyroll instead of requiring it to be provided
  15. SIMULCASTER_CRUNCHYROLL_HARVEST_TITLESWAP="$SIMULCASTER_WORK_DIR/titleswap.txt" # You can provide a list of series titles to replace here.
  16. # The mkv remuxer
  17. SIMULCASTER_REMUX_ENABLE=1
  18. SIMULCASTER_REMUX_BINARY="mkvmerge"
  19. SIMULCASTER_REMUX_OUTPUT="$SIMULCASTER_WORK_DIR/@EPID@ @EPTITLE@.raw.mkv"
  20. SIMULCASTER_REMUX_TITLE="@EPID@ @EPTITLE@ - @SERIES@"
  21. SIMULCASTER_REMUX_CR_SUBLANG="eng"
  22. SIMULCASTER_ASSIST_SCRIPTS="$SIMULCASTER_WORK_DIR/assist" # /simulcaster/ will use assist scripts in this directory. Removing this option will disable all assist scripts. If you are doing a system install, you may want to move these into /opt/simulcaster
  23. SIMULCASTER_CSV_PARSE="awk-csv-parser/src/awk-csv-parser.sh" # /simulcaster/ uses this to parse crcsv files
  24. SIMULCASTER_CSV_SEP="⚡" # This is used internally. If /simulcaster/ is mangling your csv files (because they contain this character(s)), changing this can fix the problem.
  25. # Handbrake encoder
  26. SIMULCASTER_HANDBRAKE_ENABLE=1
  27. SIMULCASTER_HANDBRAKE_BINARY="HandBrakeCLI"
  28. SIMULCASTER_HANDBRAKE_PRESET_FILE="$SIMULCASTER_WORK_DIR/handbrakepreset.json"
  29. SIMULCASTER_HANDBRAKE_PRESET_NAME="The good one (animation)"
  30. SIMULCASTER_HANDBRAKE_OUTPUT="$SIMULCASTER_WORK_DIR/@EPID@ @EPTITLE@.enc.mkv"
  31. # ffmpeg version (not working yet)
  32. SIMULCASTER_FFMPEG_ENABLE=
  33. SIMULCASTER_FFMPEG_BINARY="ffmpeg"
  34. SIMULCASTER_FFMPEG_CMDLINE=""
  35. SIMULCASTER_FFMPEG_OUTPUT="$SIMULCASTER_WORK_DIR/@EPID@ @EPTITLE@.enc.mkv"
  36. # This feature allows you to generate a second encode with an alternate preset if the first encode is too big.
  37. #SIMULCASTER_UENCODE_ENABLE=1
  38. SIMULCASTER_UENCODE_THRESHOLD=500000000 # The filesize (in bytes) that the first encode must remain under to skip the micro encode.
  39. SIMULCASTER_UENCODE_BINARY="$SIMULCASTER_HANDBRAKE_BINARY"
  40. SIMULCASTER_UENCODE_PRESET="$SIMULCASTER_WORK_DIR/uencodepreset.json"
  41. SIMULCASTER_UENCODE_OUTPUT="$SIMULCASTER_WORK_DIR/@EPID@ @EPTITLE@.uenc.mkv"
  42. # This is pretty advanced functionality that will help you copy the file into your media library automatically. Please only use this if you know what you're doing.
  43. SIMULCASTER_FILEMGR_ENABLE=1
  44. SIMULCASTER_FILEMGR_STORE_RAW=1
  45. SIMULCASTER_FILEMGR_STORE_ENC=1
  46. SIMULCASTER_FILEMGR_STORE_UNC=
  47. SIMULCASTER_FILEMGR_STORAGE="/path/to/media/library"
  48. SIMULCASTER_FILEMGR_RAWSTORAGE="/path/to/media/library"
  49. SIMULCASTER_FILEMGR_RESOLVE_SEASONDIR=1
  50. SIMULCASTER_FILEMGR_SERIESDIR_TYPE="title" # Can be "title" or "seriesid"
  51. SIMULCASTER_FILEMGR_RESOLVE_SERIESID="$SIMULCASTER_WORK_DIR/seriesids.txt" # If you're using seriesid above, put the list of series titles and seriesid pairs in this file.
  52. # This is pretty advanced functionality that will help you upload the file to a streaming server automatically. Please only use this if you know what you're doing.
  53. SIMULCASTER_UPLOAD_ENABLE=1
  54. SIMULCASTER_UPLOAD_SEND_RAW= # The raw files can be pretty big! Keep this disabled.
  55. SIMULCASTER_UPLOAD_SEND_ENC=1
  56. SIMULCASTER_UPLOAD_SEND_UNC=1
  57. SIMULCASTER_UPLOAD_USER="$USER" # The ssh user that will connect to the server. $USER will use your local username.
  58. SIMULCASTER_UPLOAD_SERVER="example.epk.sg"
  59. SIMULCASTER_UPLOAD_PATH="/path/to/content/directory"
  60. SIMULCASTER_UPLOAD_SERVERASSIST=1
  61. SIMULCASTER_UPLOAD_SERVERASSIST_SCRIPT="./.serverassist.simulcaster.sh" # The location of the server assist script on the server, relative to the remote user's $HOME
  62. SIMULCASTER_UPLOAD_RESOLVE_SEASONDIR=1 # Requires SIMULCASTER_UPLOAD_SERVERASSIST=1
  63. SIMULCASTER_UPLOAD_SERIESDIR_TYPE="seriesid" # Can be "title" or "seriesid"
  64. SIMULCASTER_UPLOAD_RESOLVE_SERIESID="$SIMULCASTER_FILEMGR_RESOLVE_SERIESID"
  65. # This option allows you to create a torrent with the generated file(s). This feature is not officially supported.
  66. #SIMULCASTER_TORRENT_ENABLE= # This feature is not officially supported. Leave this turned off.
  67. # If /simulcaster/ is being installed in system (root) mode, this allows users to provide their own configuration file instead of using this one.
  68. SIMULCASTER_USER_CONFIG="$SIMULCASTER_WORK_DIR/main.conf" # This switches things up to look for a main.conf file in the work directory.
  69. #SIMULCASTER_USER_CONFIG="$HOME/.simulcaster.conf" # This will use the hidden file `.simulcaster.conf` in the user's home if it exists.
  70. #SIMULCASTER_USER_CONFIG="$HOME/.config/simulcaster.conf" # This will use the user-installed /simulcaster/ configuration if it exists for that user.