2020-06-10 16:04:54 +00:00
|
|
|
# -*- 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
|
2021-04-13 04:02:29 +00:00
|
|
|
DEFAULT_NON_SPEECH_LABEL = 0.
|
2020-06-10 16:04:54 +00:00
|
|
|
DEFAULT_ENCODING = 'infer'
|
|
|
|
DEFAULT_MAX_SUBTITLE_SECONDS = 10
|
|
|
|
DEFAULT_START_SECONDS = 0
|
|
|
|
DEFAULT_SCALE_FACTOR = 1
|
|
|
|
DEFAULT_VAD = 'subs_then_webrtc'
|
2021-04-13 04:02:29 +00:00
|
|
|
DEFAULT_MAX_OFFSET_SECONDS = 60
|
|
|
|
DEFAULT_APPLY_OFFSET_SECONDS = 0
|
2020-06-10 16:04:54 +00:00
|
|
|
|
2020-06-12 19:08:44 +00:00
|
|
|
SUBTITLE_EXTENSIONS = ('srt', 'ass', 'ssa', 'sub')
|
2020-06-10 16:04:54 +00:00
|
|
|
|
|
|
|
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)
|