Fixed issues with scene converting

This commit is contained in:
echel0n 2014-05-31 03:35:57 -07:00
parent d7396896b5
commit 277d630a6f
4 changed files with 8 additions and 9 deletions

View file

@ -7,14 +7,13 @@
#set global $topmenu="config"#
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
<script type="text/javascript" src="$sbRoot/js/configAnime.js?$sbPID"></script>
<script type="text/javascript" src="$sbRoot/js/config.js?$sbPID"></script>
#if $varExists('header')
<h1 class="header">$header</h1>
#else
<h1 class="title">$title</h1>
#end if
<script type="text/javascript" src="$sbRoot/js/config.js?$sbPID"></script>
<div id="config">
<div id="config-content">

View file

@ -52,10 +52,10 @@ class FailedProcessor(object):
self._log(u"Warning: unable to find a valid release name.", logger.WARNING)
raise exceptions.FailedProcessingFailed()
parser = NameParser(False)
try:
parsed = parser.parse(releaseName).convert()
parser = NameParser(False, convert=True)
parsed = parser.parse(releaseName)
except InvalidNameException:
self._log(u"Error: release name is invalid: " + releaseName, logger.WARNING)
raise exceptions.FailedProcessingFailed()

View file

@ -479,8 +479,8 @@ class PostProcessor(object):
return to_return
# parse the name to break it into show name, season, and episode
np = NameParser(file, useIndexers=True)
parse_result = np.parse(name).convert()
np = NameParser(file, useIndexers=True, convert=True)
parse_result = np.parse(name)
self._log(u"Parsed " + name + " into " + str(parse_result).decode('utf-8', 'xmlcharrefreplace'), logger.DEBUG)

View file

@ -264,8 +264,8 @@ class TVCache():
def _addCacheEntry(self, name, url, quality=None):
try:
myParser = NameParser()
parse_result = myParser.parse(name).convert()
myParser = NameParser(convert=True)
parse_result = myParser.parse(name)
except InvalidNameException:
logger.log(u"Unable to parse the filename " + name + " into a valid episode", logger.DEBUG)
return None