Allow article extractor to be tried again after Mercury parser failure

This commit is contained in:
Maurice Parker 2019-10-04 07:55:42 -05:00
parent f7fd003f3c
commit c4b6cbe49e
2 changed files with 5 additions and 0 deletions

View File

@ -323,6 +323,11 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
makeToolbarValidate() makeToolbarValidate()
} }
if articleExtractor?.state == .failedToParse {
startArticleExtractorForCurrentLink()
return
}
guard articleExtractor?.state != .processing else { guard articleExtractor?.state != .processing else {
articleExtractor?.cancel() articleExtractor?.cancel()
articleExtractor = nil articleExtractor = nil