Default back to type on protocol. fix #2120

This commit is contained in:
Ruud
2013-09-05 21:46:00 +02:00
parent 7714504831
commit 117b952455
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ class Plugin(object):
def createFileName(self, data, filedata, movie):
name = os.path.join(self.createNzbName(data, movie))
if data.get('protocol') == 'nzb' and 'DOCTYPE nzb' not in filedata and '</nzb>' not in filedata:
if data.get('protocol', data.get('type')) == 'nzb' and 'DOCTYPE nzb' not in filedata and '</nzb>' not in filedata:
return '%s.%s' % (name, 'rar')
return '%s.%s' % (name, data.get('protocol'))