config.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "GALLERYDL_ENABLED": {
  7. "type": "boolean",
  8. "default": true,
  9. "x-aliases": ["SAVE_GALLERYDL", "USE_GALLERYDL"],
  10. "description": "Enable gallery downloading with gallery-dl"
  11. },
  12. "GALLERYDL_BINARY": {
  13. "type": "string",
  14. "default": "gallery-dl",
  15. "description": "Path to gallery-dl binary"
  16. },
  17. "GALLERYDL_TIMEOUT": {
  18. "type": "integer",
  19. "default": 3600,
  20. "minimum": 30,
  21. "x-fallback": "TIMEOUT",
  22. "description": "Timeout for gallery downloads in seconds"
  23. },
  24. "GALLERYDL_COOKIES_FILE": {
  25. "type": "string",
  26. "default": "",
  27. "x-fallback": "COOKIES_FILE",
  28. "description": "Path to cookies file"
  29. },
  30. "GALLERYDL_CHECK_SSL_VALIDITY": {
  31. "type": "boolean",
  32. "default": true,
  33. "x-fallback": "CHECK_SSL_VALIDITY",
  34. "description": "Whether to verify SSL certificates"
  35. },
  36. "GALLERYDL_ARGS": {
  37. "type": "array",
  38. "items": {"type": "string"},
  39. "default": [
  40. "--write-metadata",
  41. "--write-info-json"
  42. ],
  43. "x-aliases": ["GALLERYDL_DEFAULT_ARGS"],
  44. "description": "Default gallery-dl arguments"
  45. },
  46. "GALLERYDL_ARGS_EXTRA": {
  47. "type": "array",
  48. "items": {"type": "string"},
  49. "default": [],
  50. "x-aliases": ["GALLERYDL_EXTRA_ARGS"],
  51. "description": "Extra arguments to append to gallery-dl command"
  52. }
  53. }
  54. }