Unicode errors. fix #600 #597

This commit is contained in:
Ruud
2012-07-15 16:25:59 +02:00
parent 31cd0f05ba
commit 897a7ea122
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
from couchpotato import get_session
from couchpotato.api import addApiView
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.encoding import ss
from couchpotato.core.helpers.request import getParam, jsonified
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
@@ -131,7 +132,7 @@ class Release(Plugin):
rel = db.query(Relea).filter_by(id = id).first()
if rel:
for release_file in rel.files:
if not os.path.isfile(release_file.path):
if not os.path.isfile(ss(release_file.path)):
db.delete(release_file)
db.commit()