Adding capability to push attached audio via custom meta field.
diff --git a/classes/nprml.php b/classes/nprml.php
index 7b97352..b7e105e 100644
--- a/classes/nprml.php
+++ b/classes/nprml.php
@@ -320,6 +320,31 @@ function post_to_nprml_story( $post ) {
             );
 		  }
 		}
+
+		if ($audio_meta = get_option('ds_npr_api_push_audio_meta')) {
+		  if ($custom_audios = get_metadata('post', $post->ID, $audio_meta)) {
+		    foreach($custom_audios as $audio) {
+		      $story[] = array(
+                'tag' => 'audio',
+                'children' => array(
+                  array(
+                    'tag' => 'duration',
+                    'text' => 10,
+                  ),
+                  array(
+                    'tag' => 'format',
+                    'children' => array(
+                      array(
+                        'tag' => 'mp3',
+                        'text' => trim($audio),
+                      ),
+                    ),
+                  ),
+                ),
+              );
+		    }
+		  }
+		}
   return $story;
 }

diff --git a/settings.php b/settings.php
index edd7341..4d651f7 100644
--- a/settings.php
+++ b/settings.php
@@ -80,7 +80,10 @@ function ds_npr_settings_init() {

     add_settings_field( 'ds_npr_push_post_type', 'NPR Push Post Type', 'ds_npr_push_post_type_callback', 'ds_npr_api', 'ds_npr_api_settings' );
     register_setting( 'ds_npr_api', 'ds_npr_push_post_type' );
-
+
+    add_settings_field( 'ds_npr_api_push_audio_meta', 'Push audio meta field', 'ds_npr_api_push_audio_meta_callback', 'ds_npr_api', 'ds_npr_api_settings' );
+    register_setting( 'ds_npr_api', 'ds_npr_api_push_audio_meta' );
+
     add_settings_field( 'ds_npr_story_default_permission', 'NPR Permissions', 'ds_npr_push_story_permissions_callback', 'ds_npr_api', 'ds_npr_api_settings' );
     register_setting( 'ds_npr_api', 'ds_npr_story_default_permission' );

@@ -196,6 +199,11 @@ function ds_npr_push_post_type_callback() {

 }

+function ds_npr_api_push_audio_meta_callback() {
+    $option = get_option( 'ds_npr_api_push_audio_meta' );
+    echo "<input type='text' value='$option' name='ds_npr_api_push_audio_meta' />";
+}
+
 function ds_npr_push_story_permissions_callback() {
 	$permissions_groups = ds_npr_get_permission_groups();