forked from YoRyan/knowledge-seeker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_config.py
35 lines (29 loc) · 897 Bytes
/
sample_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from datetime import timedelta
from pathlib import Path
#
# All paths are relative to the instance folder.
#
## All episodes, their video files, and their subtitle files.
LIBRARY = Path('library/atla.json')
## Jpeg snapshots and subtitling.
JPEG_VRES = 720
JPEG_TINY_VRES = 100
# Path to a font acceptable to Pillow.
PIL_FONT = Path('library/fonts/Herculanum.wolff')
PIL_FONT_SIZE = 60
PIL_MAXWIDTH = 30
## Paths to ffmpeg binaries.
FFMPEG_PATH = 'ffmpeg'
FFPROBE_PATH = 'ffprobe'
## Webm/Gif animations and subtitling.
GIF_VRES = 360
WEBM_VRES = 480
MAX_GIF_LENGTH = timedelta(seconds=10)
MAX_WEBM_LENGTH = timedelta(seconds=15)
# Ffmpeg requires a path to the directory containing your desired font...
FF_FONT_DIR = Path('library/fonts/')
# ...and its filename, without the extension.
FF_FONT_NAME = 'Herculanum'
FF_FONT_SIZE = 24
## Server options.
HTTP_CACHE_EXPIRES = timedelta(days=7)