Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task/runner: Humanize unsupported input video/audio codec errs #107

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

yondonfu
Copy link
Member

No description provided.

@yondonfu yondonfu requested a review from a team as a code owner December 14, 2022 19:30
@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #107 (48b56e4) into main (1b14184) will decrease coverage by 0.03078%.
The diff coverage is 0.00000%.

Impacted file tree graph

@@                Coverage Diff                @@
##               main       #107         +/-   ##
=================================================
- Coverage   5.38421%   5.35343%   -0.03078%     
=================================================
  Files            14         14                 
  Lines          1913       1924         +11     
=================================================
  Hits            103        103                 
- Misses         1801       1812         +11     
  Partials          9          9                 
Impacted Files Coverage Δ
task/runner.go 4.88998% <0.00000%> (-0.13515%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b14184...48b56e4. Read the comment docs.

Impacted Files Coverage Δ
task/runner.go 4.88998% <0.00000%> (-0.13515%) ⬇️

@yondonfu yondonfu merged commit fc8b4f0 into main Dec 14, 2022
@yondonfu yondonfu deleted the yf/unsupported-codec-err branch December 14, 2022 19:55
return errors.New("invalid video file codec or container, check your input file against the input codec and container support matrix")
} else if strings.Contains(errMsg, "Failed probe/open") {
for _, e := range invalidVideoErrs {
if strings.Contains(errMsg, e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it's getting worth to have a little helper here like containsAny(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants