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.
20 lines
457 B
20 lines
457 B
from couchpotato.core.event import addEvent, fireEvent
|
|
from couchpotato.core.logger import CPLog
|
|
from couchpotato.core.plugins.base import Plugin
|
|
|
|
log = CPLog(__name__)
|
|
|
|
|
|
class MetaData(Plugin):
|
|
|
|
def __init__(self):
|
|
addEvent('renaming.after', self.add)
|
|
|
|
self.registerStatic(__file__)
|
|
|
|
addEvent('app.load', self.add)
|
|
|
|
def add(self, data = {}):
|
|
log.info('Getting meta data')
|
|
|
|
fireEvent('metadata.create', data)
|
|
|