Renamer, movie searcher, Library scanning

New theme for UI
and more..
This commit is contained in:
Ruud
2011-05-28 20:52:18 +02:00
parent e0b3c27957
commit 98aafeaec3
37 changed files with 2407 additions and 869 deletions
+6 -2
View File
@@ -1,6 +1,6 @@
from couchpotato import get_session
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.request import jsonified, getParams, getParam
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
@@ -17,6 +17,10 @@ class ProfilePlugin(Plugin):
addApiView('profile.save', self.save)
addApiView('profile.delete', self.delete)
path = self.registerStatic(__file__)
fireEvent('register_script', path + 'profile.js')
fireEvent('register_style', path + 'profile.css')
def all(self):
db = get_session()
@@ -59,7 +63,7 @@ class ProfilePlugin(Plugin):
order += 1
db.commit()
profile_dict = p.to_dict(deep = {'types': {}})
return jsonified({