By Brian Peat on Tuesday, 23 February 2016
Posted in Technical Issues
Likes 0
Views 583
Votes 0
I am trying to import a client's rss feed with an audio player from feedburner into their easyblog. When I do this, the feed is stripped of the player and an "X" is imported in its place.

What do I need to do to correct this?
Hi Brian Peat,

I am so sorry for the inconvenience caused.

I have checked this RSS feed: http://feeds.feedburner.com/stepoutsidethewalls and it seems like the mp3 player is not being included in the feed. Further checking reveals that http://breadboxmedia.podbean.com is using their own mp3 player in which it do not have embedded html code to be fetched. Hence, this is the reason why EasyBlog unable to retrieve the podcast.

Unfortunately, it is not possible for us to fix this issue unless embedded player is being used to play the podcast; such as <iframe>.

I am so sorry and please advise.
·
Tuesday, 23 February 2016 14:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually, "player" wasn't the right word to use. What's not coming over is the link to the mp3 file. If you view the raw xml from feedburner in Firefox (where it doesn't try to draw a feedburner page):

http://feeds.feedburner.com/StepOutsideTheWalls?format=xml

you will see the mp3 links and itunes images intact. Basically anything tagged as an "enclosure" doesn't come over into Easyblog. Why does this get stripped when importing into easyblog?

EDIT: I'm still messing with this, and working on pulling the original podbean feed instead. I'll post back once I've tested that.

Update: I tested this with the original feed:
http://breadboxmedia.podbean.com/category/outside-the-walls/feed
and it imports no text at all.

So I'm back to my original problem at this point.
·
Tuesday, 23 February 2016 23:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Brian,

I am really sorry for the delay of this reply,

I've global search around in Google and see how to get that <enclosure> tag content link, then I use this method to get that mp3 link, you can take a look of my attached screenshot below about the imported result.

// Trying to get the link from the enclosure tag
foreach (@$item->get_enclosures() as $enclosure) {
$enclosureLink = @$enclosure->get_link();
}


If you would like that mp3 link url, you can download my attached file and replace into
JoomlaFolder\administrator\components\com_easyblog\includes\feeds\adapters\mapper.php
and see how it goes.
·
Thursday, 25 February 2016 19:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you! I actually used nonumber snippets and wrapped the link with the snippet code, then injected an html 5 audio wrapper around it using a snippet. I tried it directly, but it didn't work. There's probably a good reason that I just don't understand, but snippets fixed it. The final string is this:

$enclosureContent = '{snippet html5audio|' . $enclosureLink . '}';


and then nonumber snippets turns it into an html5 audio player. I'd embed the code here, but your editor strips it out.

thanks!
·
Thursday, 25 February 2016 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
If using nonumber snippets as you shown at above is it work fine now?
·
Thursday, 25 February 2016 23:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it works fine, though my client is now asking how he can add a photo to every imported post (the same photo every time). I'm not sure how to hack the mapper to load a preset image url into the "cover" option. If it's easy, I'd love to know. If it's something you'd need to charge custom work for, do you know what that would cost?

Basically, we need a specific image-the same image every time, not different images-to ALWAYS be added as a cover photo (with a clickable link to the post if it's on the home page, which I think is the default) added to every post imported through the feed import function.

Is this something that can be done?

thanks!
·
Thursday, 25 February 2016 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Brian,

I am really sorry but we are actually quite tied up with our own EasyDiscuss 4 development and we wouldn't be able to assist you with these customizations right now

Perhaps you can take a look of this simplepie API reference link and see is it possible to get these info from the rss feed http://simplepie.org/wiki/reference/simplepie_enclosure/start

Hope this reference link can help you more here.
·
Friday, 26 February 2016 11:16
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem. But we don't actually need the image to be pulled, we just want to hard code it so that any time you import any feed, it gets the same image applied as the cover photo. I figured there was probably some way to add a bit of code to that mapper file so it just always populated the cover image with a hard coded image that was already on the server.

thanks!
·
Friday, 26 February 2016 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Brian,

Glad to know that your issue has been solved.

Like Arlex said, we are currently tied up with getting the new EasyDiscuss 4 out. In case that you still want the customization to be done by us, I'm afraid that you might have to wait a bit longer. This is because Mark is currently not available for around 3 weeks

But in case that you found a way to do it on your own, do update us about it!
·
Tuesday, 01 March 2016 19:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post