• Resolved Allyson Souza

    (@allysonsouza)


    Hi, I’m importing some posts from a custom CMS, I’ve generated the XML and I’m using WP All Import to do the migration. In my custom CMS we have the field with the media file from our CDN, how can I import it to PowerPress? It’s stored in a custom field? If yes, what’s their key?

    I’ve tried to figure out looking at source code, but was unable to get it.

    Thanks!

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

    (@shawnogordo)

    This support document includes instructions on how to import an existing podcast RSS feed into PowerPress:
    https://blubrry.com/support/powerpress-documentation/import-podcast-rss-feed/

    Thread Starter Allyson Souza

    (@allysonsouza)

    Unfortunately it’s not a feed in the other CMS, just an entry with a media attached in a field. I want to now import it and create the feed with PowerPress.

    Plugin Support Shawn

    (@shawnogordo)

    PowerPress can only import from an existing podcast RSS feed. You’ll have to add the podcast episodes manually to your WordPress posts. If you’re skilled with the WordPress database, there may be some way to import thru there. But there’s no way to do it directly with PowerPress without an existing podcast RSS feed.

    Thread Starter Allyson Souza

    (@allysonsouza)

    Hi Shawn, thanks for your support. I do have coding skills, I would like to know if it have some function or hook I can trigg to save the meta field, since I looked at the database and it doesn’t store the media file URL, but some other kind of data: https://imgur.com/a/qgvL0hz

    Plugin Support Shawn

    (@shawnogordo)

    I’ve asked the Blubrry dev team to look at your question. Will post a reply here once I get something back from them.

    Plugin Support Shawn

    (@shawnogordo)

    Here’s what the dev team had to say in response to your question:

    We don’t have a convenient way to do that. If the user doesn’t have an RSS feed, then in my eyes they don’t have a podcast to import and have never published a podcast episode. I know podcasting is changing, and it might be good to consider adding a feature to allow people to import in this manner. Where are their episode titles and show notes saved if they have no feed and just a bunch of media files?

    Thread Starter Allyson Souza

    (@allysonsouza)

    Hey @shawnogordo,

    Thanks for getting back. I know it sounds weird, but it’s a long story of an old bloated custom CMS migrating to WordPress. The old CMS doesn’t have the hability to generate podcast feeds, but they submited the audio files to them.

    I just wanted to know if there’s a function, a hook, or a process to populate the enclosure meta, since it’s not only a media url field, it puts the duration, MIME Type and other meta-info about the audio.

    I get into source code, but it was a bit confusing.

    Anyway, thanks for your willing to help.

    Plugin Support Shawn

    (@shawnogordo)

    Apologies for the delayed response. I was out last week. Here’s what the dev team had to say in response to your last message:

    The enclosure data gets saved as media url, new line, file length, new line, mime type, new line, then a serialized string of all other episode metadata. If he can follow the logic of the function _import_post_to_db() in powerpressadmin-import-rss.php, that’s a good example of how we programatically serialize this data. As far as a filter or hook, unfortunately i don’t think i can really help. We register the PowerPress RSS importer, which isn’t really a hook, and runs when an RSS feed is imported. We also do this encoding inside the edit_post hook which just runs when a post is saved, but i’m not sure if i can advise on a hook to speed up this specific importing process. If this is a developer, this info might help them throw something together to speed things up. If this isn’t a developer, unfortunately at this point, i don’t think they’ll get their data imported into powerpress any quicker than adding the metadata to each post individually.

    Thread Starter Allyson Souza

    (@allysonsouza)

    Hey @shawnogordo, it’ll definitely help us, we’re developers and knowing which files/functions to look, and how data is stored will sure make thinks easier.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Importing media files from custom CMS into PowerPress’ is closed to new replies.