-
Notifications
You must be signed in to change notification settings - Fork 67
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
Audio/flac? #42
Comments
#46 and #45 this is indeed also a regression. I'll take a look at it. In the meantime, you should be able to extend marcel like these manual overrides: https://github.com/rails/marcel/blob/a525d5b38f287ca0511c8eb26e657a1d46686e5f/lib/marcel/mime_type/definitions.rb |
Thanks! As I tried to look into it more.... it's unclear that |
I'm also not sure which one is more correct, but the fact that marcel < 1.0.0 used |
Yeah, I actually can't decide what I think is best. If marcel had already been 1.0, I think it would be legit to say it should stay the same in the interest of backwards compat. But marcel wasn't, so made zero promises as to backwards compat. But this itself was probably a mistake, marcel not being 1.0 long ago, as it was so widely used in production and a dependency of Rails... so we maybe should treat it as if it were 1.0, meaning backwards compat, yeah. On the other hand, So who knows! Whatever is least disruptive to existing users of the tool is best I guess! And I'm not even sure what that is at this point! |
Previous marcel analyzed a FLAC file and returned mime-type:
audio/flac
.New 1.0 with it's own data decides
audio/x-flac
instead. Perhaps because of this line:marcel/lib/marcel/tables.rb
Line 333 in 949e9d6
It is not clear to me which is "right", the situation with "official" mime/content-types has gotten a bit out of hand.
But a differnet part of marcel uses
audio/flac
:marcel/script/generate_tables.rb
Line 150 in 949e9d6
Not sure if these data tables are generated from some upstream source, so this is an issue (if it is one?) for some such source? If the marcel/tables.rb is generated from an upstream source, a comment at top of file saying so might be helpful.
Is there any way for me to configure marcel to tell it I'd rather it return
audio/flac
?The text was updated successfully, but these errors were encountered: