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.
23 lines
472 B
23 lines
472 B
14 years ago
|
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__)
|
||
|
|
||
|
def test():
|
||
|
fireEvent('metadata.create')
|
||
|
|
||
|
addEvent('app.load', test)
|
||
|
|
||
|
def add(self, data = {}):
|
||
|
log.info('Getting meta data')
|
||
|
|