XBMC Metadata
This commit is contained in:
@@ -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 = []
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user