Merge branch 'develop' of github.com:RuudBurger/CouchPotatoServer into develop

This commit is contained in:
Ruud
2014-06-11 09:31:43 +02:00
3 changed files with 8 additions and 3 deletions
@@ -13,6 +13,9 @@ Block.Search = new Class({
self.input = new Element('input', {
'placeholder': 'Search & add a new media',
'events': {
'input': self.keyup.bind(self),
'paste': self.keyup.bind(self),
'change': self.keyup.bind(self),
'keyup': self.keyup.bind(self),
'focus': function(){
if(focus_timer) clearTimeout(focus_timer);
+2 -2
View File
@@ -7,7 +7,7 @@ from CodernityDB.database import RecordDeleted
from couchpotato import md5, get_db
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.encoding import ss, toUnicode, sp
from couchpotato.core.helpers.encoding import toUnicode, sp
from couchpotato.core.helpers.variable import getTitle
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
@@ -143,7 +143,7 @@ class Release(Plugin):
})
# Empty out empty file groups
release['files'] = dict((k, v) for k, v in group['files'].items() if v)
release['files'] = dict((k, [toUnicode(x) for x in v]) for k, v in group['files'].items() if v)
db.update(release)
fireEvent('media.restatus', media['_id'])
+3 -1
View File
@@ -850,7 +850,9 @@ class Scanner(Plugin):
if key in filename.lower() and key != 'default':
return self.resolutions[key]
except:
return self.resolutions['default']
pass
return self.resolutions['default']
def getGroup(self, file):
try: