mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-03 12:20:50 +02:00
Honor begin/end chapters on update. For testing purposes.
This commit is contained in:
parent
e03db70185
commit
bc4876d251
1 changed files with 1 additions and 2 deletions
|
|
@ -126,6 +126,7 @@ def do_download_for_worker(book,options):
|
|||
adapter.is_adult = book['is_adult']
|
||||
adapter.username = book['username']
|
||||
adapter.password = book['password']
|
||||
adapter.setChaptersRange(book['begin'],book['end'])
|
||||
|
||||
story = adapter.getStoryMetadataOnly()
|
||||
if 'calibre_series' in book:
|
||||
|
|
@ -148,8 +149,6 @@ def do_download_for_worker(book,options):
|
|||
elif options['collision'] in (ADDNEW, SKIP, OVERWRITE, OVERWRITEALWAYS) or \
|
||||
('epub_for_update' not in book and options['collision'] in (UPDATE, UPDATEALWAYS)):
|
||||
|
||||
adapter.setChaptersRange(book['begin'],book['end'])
|
||||
|
||||
print("write to %s"%outfile)
|
||||
writer.writeStory(outfilename=outfile, forceOverwrite=True)
|
||||
book['comment'] = 'Download %s completed, %s chapters.'%(options['fileform'],story.getMetadata("numChapters"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue