• Greetings! Great plugin, very handy.

    I’m creating WP posts from a podcast RSS feed. I’d like to extract the links to the mp3s file from the Enclosures array. I’m looking for a way to dig into the array, get the key ( [link] ) and set its value (https://domain.com/podcast.mp3) to a Destination Input.

    I’ve tried using the Combine processor to do this but I’ve not had any luck getting the proper syntax. So far, it only returns the string “Array.”

    Any help you could provide in accomplishing this would be greatly appreciated!

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Tung Pham

    (@phamtungpth)

    Hi vikingbrent,

    Thank you very much for your appreciate!

    Our current WPPipes plugin still not have method to pick up that mp3 link from enclosures output of the RSS feeds. But HTML Parser processor add-on of WPPipes could pick up that link from the HTML source code of detail page.

    Please check the detail page of the podcast item if there is that mp3 link, you could use https://thimpress.com/wordpress/pipes/?add-to-cart=32034 to fetch that link.

    If possible, please give the URL of your feed, I will try to help you checking it!

    Best Regards!

    Thread Starter vikingbrent

    (@vikingbrent)

    Thanks very much!

    I’ve purchased the HTML Parser add on and I’ve begun figuring out how to set it up. Any help you can provide would be greatly appreciated!

    The feed I’m pulling from is here: https://feeds.feedburner.com/OutlawGamerRadio

    All the best.

    Plugin Contributor Tung Pham

    (@phamtungpth)

    Hi,

    It seems the feed https://feeds.feedburner.com/OutlawGamerRadio does not include correct URL of items. For example, from that feed, 1 item’s URL is https://outlawgamerssociety.com/p?=191 but I got https://www.screencast.com/t/pItaPxN8zIr when opened it on a browser.

    The correct link should be https://outlawgamerssociety.com/shows/outlaws-to-the-end/outlaws-to-the-end-011-e3-2018-reactions/ and if by somehow you could get that correct URL, please refer this https://goo.gl/Diwwf3 to see how to pick up mp3 link.

    Best Regards!

    Thread Starter vikingbrent

    (@vikingbrent)

    Alright, thanks for looking it over and I’ll check out the RSS feed and see what I can do to fix things on that end.

    Plugin Contributor Tung Pham

    (@phamtungpth)

    Hopefully you could ask the providers of that feed repair the link of items!

    In case they do not do it for you, feel free to contact us via our forum https://thimpress.com/forums/forum/plugins/pre-sale/ and we will discuss about developing a specific Processor add-on for you. That processor will pick up mp3 link from <enclosure> element of the feed.

    Best Regards!

    @phamtungpth — I have the same issue as VikingBrent. Though not an MP3 link, I am trying to get the “link” enclosure, however the entire enclosure object is coming across as “Array” for me as well.

    I’m trying to modify your plugin and fix it, but I am lost to as how you implemented supporting enclosures. Have you implemented support for RSS enclosures at all?

    Brian

    • This reply was modified 5 years, 12 months ago by phrozen755. Reason: username reference
    Plugin Contributor Tung Pham

    (@phamtungpth)

    @phrozen755, Please check the detail page for finding if the data which you want to grab from <enclosure> appears or not!

    If that data also appears in the detail page, I think you could try to use HTML Parser processor to pick it up.

    If not, you will need to have a specific add-on. Please contact us at https://thimpress.com/forums/forum/plugins/pre-sale/

    @phamtungpth

    It appears like this:

    Enclosures:
    Array
    (
        [0] => SimplePie_Enclosure Object
            (
                [bitrate] => 
                [captions] => 
                [categories] => 
                [channels] => 
                [copyright] => 
                [credits] => 
                [description] => 
                [duration] => 
                [expression] => 
                [framerate] => 
                [handler] => 
                [hashes] => 
                [height] => 
                [javascript] => 
                [keywords] => 
                [lang] => 
                [length] => 
                [link] => https://i.imgur.com/u40ing8.jpg
                [medium] => 
                [player] => 
                [ratings] => 
                [restrictions] => Array
                    (
                        [0] => SimplePie_Restriction Object
                            (
                                [relationship] => allow
                                [type] => 
                                [value] => default
                            )
    
                    )
    
                [samplingrate] => 
                [thumbnails] => Array
                    (
                        [0] => https://i.imgur.com/u40ing8.jpg
                    )
    
                [title] => 
                [type] => 
                [width] => 
            )
    
    )

    But when I try to use {[so] enclosures} in a combine processor, it returns “Array”. How do I get the link in side this enclosure so it returns the image URL?

    • This reply was modified 5 years, 11 months ago by phrozen755.
    Plugin Contributor Tung Pham

    (@phamtungpth)

    @phrozen755, as I told you, at this time, current WPPipes and its add-on(s) could not pick up and give out only that data of Enclosure Array.

    But if that link appears in the detail page of that feed item, you could use HTML Parser Processor add-on to grab it.

    If not, there is 1 way, that is contact us via https://thimpress.com/forums/forum/plugins/pre-sale/ and order us developing a specific add-on to implement it!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Extract a link from the enclosures array?’ is closed to new replies.