BuddyDev

Search

Media Press Audio uploads – autofill Media Description from MP3 Information

  • Participant
    Level: Master
    Posts: 413
    Venutius on #15558

    I notice WP does this handy trick of using the artist and track title to auto-create a description for the media track, I was wondering if MediaPress could do the same?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15559

    Hi George,
    We already do it.
    https://github.com/buddydev/mediapress/blob/master/core/media/mpp-media-functions.php#L1162

    We use these details as fallback title/description for the media.

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15560

    Just to be clear, It happens on upload if the audio has these details.

  • Participant
    Level: Master
    Posts: 413
    Venutius on #15564

    That’s strange, I wonder why that’s not happening for me?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15567

    Are you sure it is the same file you are testing with. Is WordPress is able to extract the media data, so will we.

    We are using the “wp_read_audio_metadata() ” in the meta extraction in uploader which is the same function as WordPress.

    That should make it work with us too if the file works with WordPress(meta extraction).

  • Participant
    Level: Master
    Posts: 413
    Venutius on #15571

    Yep I’m testing with the same file, via WP Media it gets the description, via mpp it does not.

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15578

    I will be testing it tonight. It’s strange but there might be some issue. Will test and get back to you later today.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved