#374 new
m

"No new posts" fix

Reported by m | August 22nd, 2011 @ 10:53 AM

I've fixed a problem with pulling in youtube (atom) feeds in 1.0RC4-6a. It kept not finding/pulling in any of the videos, stopping at the first one, so I've made it less picky. I've not tested this for regular RSS feeds.

Here's around line wpomatic.php::516:

foreach($simplepie->get_items() as $item)
{

// $this->log('Processing item (title,link,hash):'.$item->get_title().', '.$item->get_permalink().', '.$this->getItemHash($item)); /* //this might not work for oldest-first feeds, or it's just not cool..

  if($feed->hash == $this->getItemHash($item))
  {
    if($count == 0) $this->log('No new posts');
    break;  //worst.idea.ever.
  }

*/

  if($this->isDuplicate($campaign, $feed, $item)){
    $this->log('Filtering duplicate post:'.$item->get_title());

// break;

  } else {
      $count++;
      array_unshift($items, $item);     //add to to-be-processed-list
  }      

  if($count == $campaign->max)
  {
    $this->log('Campaign fetch limit reached at ' . $campaign->max);
    break;
  }
}

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

WP-o-Matic project.

People watching this ticket

Pages