def grab_volume(url, output_dir, cover_path): """ grab volume Args: url: A string represent the url which was input by user output_dir: A string represent the path of the output EPUB file cover_file: A string represent the path of the EPUB cover """ try: print_info('Getting:' + url) novel = Novel(url=url, single_thread=SINGLE_THREAD) novel.get_novel_information() epub = Epub(output_dir=output_dir, cover_path=cover_path, **novel.novel_information()) epub.generate_epub() except Exception as e: if HAS_QT: SENDER.sigWarningMessage.emit('错误', str(e) + '\nat:' + url) SENDER.sigButton.emit() print(url) raise e