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

WIP: Ignore mp3 files that mp3gain cannot process #120

Closed
wants to merge 1 commit into from

Conversation

notartom
Copy link
Member

@notartom notartom commented Apr 16, 2021

In the validator, sometimes audio files either have a typo in their
path, or aren't actually audio files (when this patch was being
tested, the offending files were HTML files from a 301 redirect
response). In those cases, mp3gain does not return any useful output.
Specifically, instead of printing the header line plus the actually
useful line, it just prints the header line, with an error message
going to stderr (which we ignore because we only look at stdout).

This patch just makes the validator skip any such files.

Resolves #119

In the validator, sometimes audio files either have a typo in their
path, or aren't actually audio files (when this patch was being
tested, the offending files were HTML files from a 301 redirect
response). In those cases, mp3gain does not return any useful output.
Specifically, instead of printing the header line plus the actually
useful line, it just prints the header line, with an error message
going to stderr (which we ignore because we only look at stdout).

This patch just makes the validator skip any such files.

Resolves LibriVox#119

Change-Id: Id08899ef6f415aeece6912e9676a7bcab05caf81
@notartom
Copy link
Member Author

notartom commented Nov 4, 2021

7f63d1c has superceded this, closing.

@notartom notartom closed this Nov 4, 2021
@notartom notartom deleted the fix-119 branch November 4, 2021 14:54
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.

Improve handling of incorrect paths in validator
1 participant