Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/blame/commit/d2bbc479bcf7044d5f6a1c435adac161a29112fb/libs/ffsubsync/suboffset.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/libs/ffsubsync/suboffset.py

28 lines
594 B

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import sys
from sklearn.pipeline import Pipeline
from .subtitle_parser import GenericSubtitleParser
from .subtitle_transformers import SubtitleShifter
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def main():
td = float(sys.argv[3])
pipe = Pipeline([
('parse', GenericSubtitleParser()),
('offset', SubtitleShifter(td)),
])
pipe.fit_transform(sys.argv[1])
pipe.steps[-1][1].write_file(sys.argv[2])
return 0
if __name__ == "__main__":
sys.exit(main())