• Resolved djbaxter

    (@djbaxter)


    Love this plugin but there are a couple of issues I can’t see how to fix:

    1. Feedzly typically fetches 2-3 copies of the same feed.
    2. I am having the feeds imported as drafts before editing and publishing them or sending them to trash but, even after publishing or deleting the feed, Feedzly fethces the same feeds again.

    Is there a way to filter out these duplicate imports?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter djbaxter

    (@djbaxter)

    I have installed and set up the Pluginception plugin so if there’s additional code that would accomplish this I could add it there.

    Thread Starter djbaxter

    (@djbaxter)

    I think I’ve found the solution.

      Install the Pluginception plugin.
      Follow directions at How to Create a Site Specific Plugin
      Add the following to your site-specific plugin:
    /* eliminate duplicate feed items */
    function tifd_feedzy_remove_duplicates( $items, $feedURL ) {
    	$uniques = array();
    	foreach ( $items as $item ) {
    		if ( isset( $uniques[ strval( md5( $item->get_permalink() ) ) ] ) ) {
    			continue;
    		}
    		$uniques[ md5( $item->get_permalink() ) ] = $item;
    	}
    	return array_values( $uniques );
    }  
    add_filter( 'feedzy_feed_items', 'tifd_feedzy_remove_duplicates', 10, 2 );
    Thread Starter djbaxter

    (@djbaxter)

    I can confirm that this method eliminates the duplicate and triplicate imports. 🙂

    Thread Starter djbaxter

    (@djbaxter)

    I spoke too soon. 🙁

    It seemed to be working this morning but now it’s back to importing 2, 3, or even 4 copies of previouly trashed drafts.

    Plugin Support Vytis

    (@bvytis)

    Hi @djbaxter,

    Please check if you’re running the latest Feedzy version and if it still happens with the latest version – provide us the XML RSS Feed that you’re using to try importing items from the feed as posts on our end.

    Thanks!

    Thread Starter djbaxter

    (@djbaxter)

    I am running the latest versions of both Lite and Pro.

    I import all my feeds as draft so I can edit them and comment before posting.

    Here’s a couple of sample feeds:

    https://globalnews.ca/health/feed/

    https://davidsuzuki.org/story-category/science-matters/feed/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to prevent Feedzly from fetching multiple copies’ is closed to new replies.