When attaching Ogg Vorbis files using this module, the little icon displayed next to it appears to be a generic one, not an audio icon like the one for MP3. A screenshot is attached to this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| screenshot.png | 2.44 KB | DragoonBoots |
Comments
Comment #1
drewish commentedcheck the files table and look at the mime type. we're at the mercy of the mime type that your browser provided.
Comment #2
DragoonBootsIt was classified as "application/ogg", which seems correct.
Comment #3
drewish commentedit's correct but based simply off of that is the file audio or video? i think you'd need to use something like mimedetect to be more accurate.
Comment #4
dopry commentedThe proper mime type for ogg is application/ogg since it is a container format and can be either audio or video. For this particular case defaulting to the video icon might be appropriate since it is within the capabilities of the format... Unfortunately the developers of OGG decided to use the same mime type for all ogg encoded files no matter what types of streams are encoded inside the container.
Can you try using mime detect and see if it returns a different mime type. I might be able to update the magic database to return unofficial audio/ogg or video/ogg mime types.
Comment #5
DragoonBootsIf you mean use FileField alongside mime detect that's what I was doing. In the interest of curiosity, I ran the file command on the Ogg Vorbis file, and it returned the following:
tt-0.ogg: Ogg data, Vorbis audio, mono, 44100 Hz, ~96000 bps, created by: Xiph.Org libVorbis IComment #6
drewish commentedbut that's not a mimetype... run it with --mime --brief
Comment #7
DragoonBootsIt returned application/ogg, same as what appeared in the files table when I uploaded the file.
Comment #8
drewish commentedah... yeah so we're coming back with the correct information. maybe the best thing would be to add an ogg specific icon.
Comment #9
dopry commentedanyone up to massaging an OGG icon from the existing icon set?
Comment #10
DragoonBootsIs it possible to just use the existing icon used for generic audio files?
Comment #11
drewish commentedcheck out the the filemime module: http://drupal.org/project/filemime