We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
1
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
1
  • Home
  • Forums

Plugin: FeedGrab

Development and Programming

Schmidt137's avatar
Schmidt137
3 posts
17 years ago
Schmidt137's avatar Schmidt137

Hello Andrew,

I’m using FG 0.73 with EE 1.52. Everything seems to work fine for me, most of the time. The only problem I’m having is the duplicate insertion of some stories. This happens periodically. For a while only one entry is made, then a series of duplicate entries occur, and so on. I’m not sure what the problem is - would appreciate any clues as to where to look. Would the use of the unique=”title,date” parameter resolve this problem?

Other than that, thanks for a lovely plug-in. Really appreciate it.

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
17 years ago
Andrew Weaver's avatar Andrew Weaver

The unique=”title,date” parameter is actually the default behaviour. Possibly the feed’s title or timestamp changes and you get duplicates because of that.

I tend to find that a lot of RSS feeds have a unique field to check on, often called something like guid. I set up a custom field (called, say, feed_guid) and import the feed’s guid into it and use the parameter unique=”feed_guid”.

That might help…

       
Schmidt137's avatar
Schmidt137
3 posts
17 years ago
Schmidt137's avatar Schmidt137

Thanks Andrew, I did see your documentation on GUIDs. Was hoping the “title,date” stuff would work and I did explicitly invoke that parameter after my last post. It’s off to visit GUIDs then! 😊

       
ms's avatar
ms
274 posts
17 years ago
ms's avatar ms

I ran into duplicates as well when checking titles - seems it happens if the original title is too long and therefore is truncated by the plugin.

-Markus

       
Schmidt137's avatar
Schmidt137
3 posts
17 years ago
Schmidt137's avatar Schmidt137

Thanks ms, that is good to know. I will take it as another vote for using the GUID field. I sure hope the feeds I’m using have that functionality. :)

       
Briggs's avatar
Briggs
111 posts
17 years ago
Briggs's avatar Briggs

EDIT: Nevermind, I fixed it (Forgot I changed my default weblog field group)

       
Ludwig Wendzich's avatar
Ludwig Wendzich
47 posts
17 years ago
Ludwig Wendzich's avatar Ludwig Wendzich

Hey,

I’m also wondering about the offset parameter. My Flickr feed is 20 hours into the future.

       
Jim F's avatar
Jim F
53 posts
17 years ago
Jim F's avatar Jim F

Thanks for the plugin. I’ve been using it for a few weeks and it works very well. One feature request, though, could you add the ability to automatically update the last_entry_date in exp_weblogs? Thanks.

       
Edith Frost's avatar
Edith Frost
4 posts
17 years ago
Edith Frost's avatar Edith Frost

Andrew, your plugin rocks… but add me to the list of people who can’t get the “offset” parameter to work. My Twitter posts are two hours earlier than they should be, so I’ve tried offset=”2”, offset=”-2” and offset=”+2” – nothing seemed to happen for any of those. How should I be formatting this instead?

       
Briggs's avatar
Briggs
111 posts
17 years ago
Briggs's avatar Briggs

Two questions:

  1. Is the offset parameter in minutes or hours? I’m having odd results, hard to explain, but it jumps a whole day even though I’ve only changed it by two hours or so, it seems to ignore the day of the month. Can it do negative time as wel?

  2. All of a sudden i am getting this error when my feedgrab page runs.. it just started happening for no reason (that i can tell, on my end)

Fetching: http://www.mysite.com/boards/news.xml

Warning: MagpieRSS: Failed to fetch http://www.mysite.com/boards/news.xml (HTTP Error: connection failed (11) in /home/usr/public_html/dir/system/plugins/pi.feedgrab.php on line 1784

Any figure that sucker out? :\

       
Briggs's avatar
Briggs
111 posts
17 years ago
Briggs's avatar Briggs

Solved:

put an invalid value in the date=”” parameter, such as title or something else. I then used the offset parameter to adjust the time zones of the feeds to match my servers time zone (for my case, i have 7 feeds i want to all be on the servers time zone)

I still have the above error and have looked into it on my side. We had our php updated by thre are no settings that should be affecting this particular feed, so perhaps its on the other sites end.

       
beep's avatar
beep
25 posts
17 years ago
beep's avatar beep

Briggs, any chance you could post some of your code? I’m still having trouble with timestamps on FeedGrab’d data, and I can’t get the offset parameter to work at all.

Or Andrew, are you there? 😊

       
Edith Frost's avatar
Edith Frost
4 posts
17 years ago
Edith Frost's avatar Edith Frost

Regarding offset, the code that ended up working for me was

offset="-18000"

I had other problems, but at least that was working. 😉

       
beep's avatar
beep
25 posts
17 years ago
beep's avatar beep

Wow. So it’s in seconds?

       
Edith Frost's avatar
Edith Frost
4 posts
17 years ago
Edith Frost's avatar Edith Frost

I know the feeling ‘cuz I was the same way, “d’oh!!” I only use HH:MM in my templates so that’s why nothing was happening when I put “-2” or whatever.

       
First 5 6 7 8 9 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.