mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 16:23:41 +00:00
18 lines
390 B
Python
18 lines
390 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from six import text_type
|
|
|
|
from ...property import Configurable
|
|
|
|
|
|
class SubtitleFormat(Configurable):
|
|
"""Subtitle Format property."""
|
|
|
|
@classmethod
|
|
def _extract_key(cls, value):
|
|
key = text_type(value) .upper()
|
|
if key.startswith('S_'):
|
|
key = key[2:]
|
|
|
|
return key.split('/')[-1]
|