• When using a 3rd-party WordPress publishing client (Such as MarsEdit) to publish posts, the enclosures aren’t properly created on the podcast posts. This is likely because it uses xmlrpc_publish_post instead of publish_post , which Powerpress hooks into to generate the enclosures.

    After the post is published via xmlrpc_publish_post, the enclosure looks like this:
    https://www.podtrac.com/xxxx.mp3

    This is a problem, because WordPress 6.7 won’t show a malformed enclosure in the RSS feed.

    When editing the post via wp-admin, when you click ‘update’, or when you publish it from wp-admin in the first place, the Powerpress functions all run and the enclosure is properly fixed, and looks like this:

    'https://www.podtrac.com/xxxx.mp3 25074178 audio/mpeg a:17:{s:12:"value_pubkey";a:0:{}s:15:"value_lightning";a:0:{}s:16:"value_custom_key";a:0:{}s:18:"value_custom_value";a:0:{}s:11:"value_split";a:0:{}s:12:"person_names";a:1:{i:0;s:0:"";}s:12:"person_roles";a:1:{i:0;s:0:"";}s:11:"person_urls";a:1:{i:0;s:0:"";}s:9:"link_urls";a:1:{i:0;s:0:"";}s:16:"soundbite_starts";a:1:{i:0;s:0:"";}s:19:"soundbite_durations";a:1:{i:0;s:0:"";}s:16:"soundbite_titles";a:1:{i:0;s:0:"";}s:8:"duration";s:7:"0:34:19";s:12:"set_duration";s:1:"0";s:8:"set_size";s:1:"0";s:12:"episode_type";s:4:"full";s:10:"podcast_id";s:0:"";}'

    Is it possible to file an issue to have the enclosure data also be generated when a post is published via xmlrpc_publish_post ? I don’t see a public repo to add an issue to.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shawn

    (@shawnogordo)

    I’ve asked the Blubrry dev team to look at your question. I’ll post another message here as soon as I get something back from them.

    Thread Starter NickGreen

    (@nickirongate)

    Thank you! Please feel free to reach out to me for any help tracking this down, etc. I can test fixes, or provide better steps to duplicate.

    Plugin Support Shawn

    (@shawnogordo)

    Dev team has some questions:
    Are you using the Auto Add Media option? This is the only feature that uses the publish_post hook. If you’re adding the media URL to the PowerPress episode metabox before publishing, then this stuff would be happening when save_post fires (which it still should from xmlrpc). Just want to clarify in case we need to look elsewhere for the problem.

    Post a response here and I’ll pass it on to them.

    Thread Starter NickGreen

    (@nickirongate)

    I’ll try to provide as many details as I can:

    • The publishing client is called MarsEdit. It allows the user to add custom postmeta to each post that the publish.
    • In this case, the user is adding an enclosure postmeta (see screenshot). They are adding it simply as a link to an MP3 file.
    • What happens is that when the post is published via xmlrpc_publish_post, the enclosure postmeta is saved exactly as it’s input: a simple URL.
    • This is a problem because with the latest (6.7) version of WordPress, the enclosure has to have a specific format to display in the RSS feed.
    • If we go to wp-admin in a browser and edit the post, then click ‘update’, Powerpress does its thing and populates the enclosure with the correct format. However, the user never uses the browser interface. Ideally, we could figure out a way to be able to publish these posts from MarsEdit and have the enclosure postmeta populate correctly upon publish.
    • This reply was modified 5 months ago by NickGreen.
    Plugin Support Shawn

    (@shawnogordo)

    Dev team replied with this:
    “the logic they are referring to where powerpress does its thing is inside the hook ‘save_post’ which should be triggered on all post updates, including those from xmlrpc accordeing to wp’s documentation: save_post – Hook | Developer.WordPress.org. Is there possibly something else on their site that is breaking the publishing process with xmlrpc? If they could verify that the save_post hook is firing that would be great”

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.