mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-21 14:17:56 +08:00
14 lines
303 B
Python
14 lines
303 B
Python
|
|
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]
|