mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Remove unused imports, variables, and redundant parentheses
This commit is contained in:
parent
1a3b1ce4b6
commit
58d439f3eb
2 changed files with 3 additions and 10 deletions
|
@ -527,7 +527,6 @@ def process(inputDirectory, inputName=None, status=0, clientAgent='manual', down
|
|||
|
||||
myDB = nzbToMediaDB.DBConnection()
|
||||
|
||||
encoded = False
|
||||
inputDirectory1 = inputDirectory
|
||||
inputName1 = inputName
|
||||
|
||||
|
@ -633,9 +632,6 @@ def main(args, section=None):
|
|||
# Initialize the config
|
||||
core.initialize(section)
|
||||
|
||||
# clientAgent for NZBs
|
||||
clientAgent = core.NZB_CLIENTAGENT
|
||||
|
||||
logger.info("#########################################################")
|
||||
logger.info("## ..::[{0}]::.. ##".format(os.path.basename(__file__)))
|
||||
logger.info("#########################################################")
|
||||
|
@ -792,16 +788,16 @@ def main(args, section=None):
|
|||
print result[1] + "!" # For SABnzbd Status display.
|
||||
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
||||
del core.MYAPP
|
||||
return (core.NZBGET_POSTPROCESS_SUCCESS)
|
||||
return core.NZBGET_POSTPROCESS_SUCCESS
|
||||
else:
|
||||
logger.error("A problem was reported in the {0} script.".format(args[0]))
|
||||
if result[1]:
|
||||
print result[1] + "!" # For SABnzbd Status display.
|
||||
if os.environ.has_key('NZBOP_SCRIPTDIR'): # return code for nzbget v11
|
||||
del core.MYAPP
|
||||
return (core.NZBGET_POSTPROCESS_ERROR)
|
||||
return core.NZBGET_POSTPROCESS_ERROR
|
||||
del core.MYAPP
|
||||
return (result[0])
|
||||
return result[0]
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue