I'm trying to setup a view to show a page of audio tracks by a given artist. The URL would be $artist/audio.

However, there doesn't seem to be an argument filter of "Audio: Tag Artist" like there is in the regular filter.

I poked around for some help and found something about adding your own filter but it didn't work.

<?php
if (isset($args[0])) {
  views_view_add_filter($view, 'audio_metadata_genre', 'clean', '=', $args[0], '');
  views_sanitize_view($view);
}
return $args;
?>

Can someone point me in the right direction. Thanks!

Comments

tayknight’s picture

Where did you find this info? I'm trying to do the same thing with album. Thanks.

tayknight’s picture

I had the same problem. Clearing the view cache from admin/build/views/tools fixed it for me.

drewish’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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