camel icon indicating copy to clipboard operation
camel copied to clipboard

fix: postprocessing error for yt-dlp by sanitizing file names in FileWriteToolkit

Open parthshr370 opened this issue 9 months ago • 1 comments

Description

Solves issue in OWL - https://github.com/camel-ai/owl/issues/346

file names generated from video titles (or other metadata) often include spaces and special characters

when calls ytdlp it passes these strings directly

need to sanitize the way file_write_toolkit works - removes dot(.) dash(-) with underscore(_)

added a test function for the same

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • [x] I have read the CONTRIBUTION guide (required)
  • [x] I have linked this PR to an issue using the Development section on the right sidebar or by adding Fixes #issue-number in the PR description (required)
  • [x] I have checked if any dependencies need to be added or updated in pyproject.toml and uv lock
  • [x] I have updated the tests accordingly (required for a bug fix or a new feature)
  • [ ] I have updated the documentation if needed:
  • [ ] I have added examples if this is a new feature

If you are unsure about any of these, don't hesitate to ask. We are here to help!

parthshr370 avatar Mar 18 '25 10:03 parthshr370

cc @Wendong-Fan

GitHoobar avatar Mar 18 '25 12:03 GitHoobar