Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    @britaliano

    It looks like you’re asking about the Media File Prefix setting:

    Podcasting -> Settings -> Feed details -> Media File Prefix

    It will prepend every audio file link with the needed URL prefix.

    Best regards,
    Sergiy, development team.

    Thread Starter britaliano

    (@britaliano)

    WONDERFUL!

    Thanks so much.

    Thread Starter britaliano

    (@britaliano)

    I’ve started using this, but the Episode File field under Podcast Episode Details does not reflect the change.

    I have the setting under Media File Prefix as required but the URL of the file does not change, so until I update this manually, the stats do not update.

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @britaliano!

    Thank you for bringing it to our attention. We’ll fix it in the next plugin releases.

    Meanwhile, please try putting this code snippet in your functions.php file:

    add_filter( 'ssp_html_player_data', function ( $data ) {
    	if ( ! empty( $data['audio_file'] ) ) {
    		$media_prefix = get_option( 'ss_podcasting_media_prefix', '' );
    		if ( false === strpos( $data['audio_file'], $media_prefix ) ) {
    			$data['audio_file'] = $media_prefix . $data['audio_file'];
    		}
    	}
    
    	return $data;
    } );

    Hope this helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Support for OP3 Podcast Stats’ is closed to new replies.