-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve validation and error handling in audio processing
- Added a check for a non-empty request clip in the ProcessAudio method - Added ArgumentNullExceptions to the DownloadAudioAsync methods if the input is null or empty - Implemented a check in the SoundButtons class to return a BadRequestResult if there source.VideoId, req.Form.GetFirstValue("clip") and req.Form.Files.Count are all empty - Created a SourceCheck function to validate a Source object - Refactored time invalidation check and error message to be more descriptive Signed-off-by: 陳鈞 <jim60105@gmail.com>
- Loading branch information
Showing
3 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters