diff --git a/root/app/fanficdownload.py b/root/app/fanficdownload.py index d27374d..c4b2fb2 100644 --- a/root/app/fanficdownload.py +++ b/root/app/fanficdownload.py @@ -145,7 +145,7 @@ def downloader(args): res = check_output( 'calibredb export {} --dont-save-cover --dont-write-opf --single-dir --to-dir "{}" {}'.format( storyId, loc, path), shell=True, stdin=PIPE, stderr=STDOUT).decode('utf-8') - cur = get_files(loc, ".epub", True)[0] + cur = get_files(loc, ".epub", True)[0] # This causes the same book to be duplicated a whole bunch of times. TODO: Find solution. output += log( '\tDownloading with fanficfare, updating file "{}"'.format(cur), 'GREEN',