You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/custom_libs/subzero/modification/registry.py

19 lines
416 B

6 years ago
# coding=utf-8
5 years ago
from __future__ import absolute_import
6 years ago
from collections import OrderedDict
class SubtitleModRegistry(object):
mods = None
mods_available = None
def __init__(self):
self.mods = OrderedDict()
self.mods_available = []
def register(self, mod):
self.mods[mod.identifier] = mod
self.mods_available.append(mod.identifier)
registry = SubtitleModRegistry()