File not properly send to Sabnzbd

This commit is contained in:
Ruud
2014-03-19 22:37:44 +01:00
parent 5b2dfffe0f
commit f4e373447e
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ import time
import traceback
import urllib2
from couchpotato import get_db
from couchpotato.core.event import fireEvent, addEvent
from couchpotato.core.helpers.encoding import ss, toSafeString, \
toUnicode, sp
@@ -332,7 +331,7 @@ class Plugin(object):
return '%s%s' % (toSafeString(toUnicode(release_name)[:max_length]), tag)
def createFileName(self, data, filedata, media):
name = sp(os.path.join(self.createNzbName(data, media)))
name = self.createNzbName(data, media)
if data.get('protocol') == 'nzb' and 'DOCTYPE nzb' not in filedata and '</nzb>' not in filedata:
return '%s.%s' % (name, 'rar')
return '%s.%s' % (name, data.get('protocol'))