mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-27 01:57:33 +00:00
4a0932b5d3
* Update ffsubsync to 0.4.11 * Update srt to 3.4.1
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
SUBSYNC_RESOURCES_ENV_MAGIC = "ffsubsync_resources_xj48gjdkl340"
|
|
|
|
SAMPLE_RATE = 100
|
|
|
|
FRAMERATE_RATIOS = [24./23.976, 25./23.976, 25./24.]
|
|
|
|
DEFAULT_FRAME_RATE = 48000
|
|
DEFAULT_NON_SPEECH_LABEL = 0.
|
|
DEFAULT_ENCODING = 'infer'
|
|
DEFAULT_MAX_SUBTITLE_SECONDS = 10
|
|
DEFAULT_START_SECONDS = 0
|
|
DEFAULT_SCALE_FACTOR = 1
|
|
DEFAULT_VAD = 'subs_then_webrtc'
|
|
DEFAULT_MAX_OFFSET_SECONDS = 60
|
|
DEFAULT_APPLY_OFFSET_SECONDS = 0
|
|
|
|
SUBTITLE_EXTENSIONS = ('srt', 'ass', 'ssa', 'sub')
|
|
|
|
GITHUB_DEV_USER = 'smacke'
|
|
PROJECT_NAME = 'FFsubsync'
|
|
PROJECT_LICENSE = 'MIT'
|
|
COPYRIGHT_YEAR = '2019'
|
|
GITHUB_REPO = 'ffsubsync'
|
|
DESCRIPTION = 'Synchronize subtitles with video.'
|
|
LONG_DESCRIPTION = 'Automatic and language-agnostic synchronization of subtitles with video.'
|
|
WEBSITE = 'https://github.com/{}/{}/'.format(GITHUB_DEV_USER, GITHUB_REPO)
|
|
DEV_WEBSITE = 'https://smacke.net/'
|
|
|
|
# No trailing slash important for this one...
|
|
API_RELEASE_URL = 'https://api.github.com/repos/{}/{}/releases/latest'.format(GITHUB_DEV_USER, GITHUB_REPO)
|
|
RELEASE_URL = 'https://github.com/{}/{}/releases/latest/'.format(GITHUB_DEV_USER, GITHUB_REPO)
|