bazarr/libs/subzero/modification/registry.py

18 lines
377 B
Python
Raw Normal View History

2018-10-31 16:08:29 +00:00
# coding=utf-8
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()