XBMC Metadata

This commit is contained in:
Ruud
2011-09-19 20:58:43 +02:00
parent a680628bf0
commit bce5a9f8f9
6 changed files with 38 additions and 37 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class LibraryPlugin(Plugin):
continue
file_path = fireEvent('file.download', url = image, single = True)
file = fireEvent('file.add', path = file_path, type = ('image', type[:-1]), single = True)
file = fireEvent('file.add', path = file_path, type = ('image', type), single = True)
try:
file = db.query(File).filter_by(id = file.get('id')).one()
library.files.append(file)
@@ -1,6 +0,0 @@
from .main import MetaData
def start():
return MetaData()
config = []
-16
View File
@@ -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)