mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-08 15:22:39 +02:00
refactor: update file skipping logic in Dropbox, Google Drive, and OneDrive connectors to return unsupported extension information
This commit is contained in:
parent
122be76133
commit
a624c86b04
4 changed files with 9 additions and 5 deletions
|
|
@ -24,7 +24,8 @@ async def download_and_extract_content(
|
|||
item_id = file.get("id")
|
||||
file_name = file.get("name", "Unknown")
|
||||
|
||||
if should_skip_file(file):
|
||||
skip, _unsup_ext = should_skip_file(file)
|
||||
if skip:
|
||||
return None, {}, "Skipping non-indexable item"
|
||||
|
||||
file_info = file.get("file", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue