[Features] Add Github and Youtube Channel loaders (#957)
Co-authored-by: Deven Patel <deven298@yahoo.com> Co-authored-by: Deshraj Yadav <deshrajdry@gmail.com>
This commit is contained in:
@@ -57,8 +57,8 @@ class SitemapLoader(BaseLoader):
|
||||
try:
|
||||
data = future.result()
|
||||
if data:
|
||||
output.append(data)
|
||||
output.extend(data)
|
||||
except Exception as e:
|
||||
logging.error(f"Error loading page {link}: {e}")
|
||||
|
||||
return {"doc_id": doc_id, "data": [data[0] for data in output if data]}
|
||||
return {"doc_id": doc_id, "data": output}
|
||||
|
||||
Reference in New Issue
Block a user