1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 09:37:25 +00:00
bazarr/libs/ffsubsync/constants.py
2020-06-12 15:08:44 -04:00

30 lines
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_ENCODING = 'infer'
DEFAULT_MAX_SUBTITLE_SECONDS = 10
DEFAULT_START_SECONDS = 0
DEFAULT_SCALE_FACTOR = 1
DEFAULT_VAD = 'subs_then_webrtc'
DEFAULT_MAX_OFFSET_SECONDS = 600
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)