6 changed files with 38 additions and 37 deletions
@ -1,6 +0,0 @@ |
|||
from .main import MetaData |
|||
|
|||
def start(): |
|||
return MetaData() |
|||
|
|||
config = [] |
@ -1,16 +0,0 @@ |
|||
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('renamer.after', self.add) |
|||
|
|||
def add(self, data = {}): |
|||
log.info('Getting meta data') |
|||
|
|||
fireEvent('metadata.create', data) |
Loading…
Reference in new issue