bazarr/libs/subzero/modification/registry.py
Louis Vézina 3ca2c98cd4 WIP
2019-09-16 22:04:27 -04:00

18 lines
416 B
Python

# coding=utf-8
from __future__ import absolute_import
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()