Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/src/commit/5c56866d561e9f63d9e9527a14ac648dca4a5511/libs/knowit/properties/subtitle.py
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
from knowit.core import Configurable
|
|
|
|
|
|
class SubtitleFormat(Configurable[str]):
|
|
"""Subtitle Format property."""
|
|
|
|
@classmethod
|
|
def _extract_key(cls, value) -> str:
|
|
key = str(value).upper()
|
|
if key.startswith('S_'):
|
|
key = key[2:]
|
|
|
|
return key.split('/')[-1]
|