Added basic recipe web import functionality to the RecipeEditView

This commit is contained in:
Vicnet
2023-11-09 15:44:25 +01:00
parent 03f821c1ba
commit 1d3b936e99
4 changed files with 48 additions and 10 deletions

View File

@@ -20,11 +20,12 @@ class RecipeScraper {
} else {
print("ERROR: Bad url.")
return nil
}
guard let html = contents else {
print("ERROR: no contents")
exit(1)
return nil
}
let doc = try SwiftSoup.parse(html)