Recently I build a site hosting podcasts and found that I needed FileField Meta to display various ID3 information like duration and sample rate. Much to my surprise however, it seems that our Views handlers for FileField Meta are either broken or severely lacking. I guess not many people are using it for these purposes, since we haven't had hardly any requests or reports regarding these problems. This patch make some much-needed changes to our Views implementation.

- Introduces handlers for bitrate and samplerate display, so you can format strings as 44kHz or 128Kbps.
- Actually uses our theme functions for bitrate and samplerate, fixing them to be translatable at the same time.
- Fixes the views handler for audio_format, channel_mode, and bitrate_mode; all of which were broken.

filefield_meta_views_enhanced.patch9.89 KBquicksketch
Members fund testing for the Drupal project. Drupal Association Learn more


quicksketch’s picture

Status: Needs review » Fixed

Also included:

- Updated our handlers to support Views' relatively new hide_empty options.
- Restored rewriting of field data, as it's become much more commonly used.

Since this patch is such an improvement over our currently completely broken implementation, I've gone ahead and committed it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.