mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
fix: refactoring of fetch_node qixed error
This commit is contained in:
parent
29ad140fa3
commit
1ea2ad8e79
@ -120,13 +120,12 @@ class FetchNode(BaseNode):
|
||||
if input_type in handlers:
|
||||
return handlers[input_type](state, input_type, source)
|
||||
elif self.input == "pdf_dir":
|
||||
pass
|
||||
return state
|
||||
elif not source.startswith("http"):
|
||||
return self.handle_local_source(state, source)
|
||||
else:
|
||||
return self.handle_web_source(state, source)
|
||||
|
||||
|
||||
def handle_directory(self, state, input_type, source):
|
||||
"""
|
||||
Handles the directory by compressing the source document and updating the state.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user