mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Fix issue #341 list indices must be intergers not str
This commit is contained in:
parent
be65be2735
commit
4d1ec040e9
2 changed files with 5 additions and 5 deletions
|
@ -311,12 +311,12 @@ def main(args):
|
|||
logger.info("Checking database for download info for %s ..." % (os.path.basename(dirName)))
|
||||
downloadInfo = nzbtomedia.get_downloadInfo(os.path.basename(dirName), 0)
|
||||
if downloadInfo:
|
||||
clientAgent = str(downloadInfo['client_agent'][0])
|
||||
clientAgent = str(downloadInfo[0]['client_agent'])
|
||||
if not clientAgent.lower() in nzbtomedia.TORRENT_CLIENTS:
|
||||
continue
|
||||
|
||||
inputHash = str(downloadInfo['input_hash'][0])
|
||||
inputID = str(downloadInfo['input_id'][0])
|
||||
inputHash = str(downloadInfo[0]['input_hash'])
|
||||
inputID = str(downloadInfo[0]['input_id'])
|
||||
logger.info("Found download info for %s, setting variables now ..." % (os.path.basename(dirName)))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue