|
|
@ -145,7 +145,7 @@ def downloader(args):
|
|
|
|
res = check_output(
|
|
|
|
res = check_output(
|
|
|
|
'calibredb export {} --dont-save-cover --dont-write-opf --single-dir --to-dir "{}" {}'.format(
|
|
|
|
'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')
|
|
|
|
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(
|
|
|
|
output += log(
|
|
|
|
'\tDownloading with fanficfare, updating file "{}"'.format(cur),
|
|
|
|
'\tDownloading with fanficfare, updating file "{}"'.format(cur),
|
|
|
|
'GREEN',
|
|
|
|
'GREEN',
|
|
|
|