mirror of https://github.com/morpheus65535/bazarr
19 lines
390 B
Python
19 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]
|