Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2011 at 00:40 UTC
Updated:
16 Jul 2014 at 15:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Brandonian commentedAnd here is said patch. Cursory testing shows that it works well, but could use another set of eyes.
Comment #2
Brandonian commentedbump
Comment #3
dqdneed time here to set up. will test. thx!
Comment #4
Brandonian commentedbump. I've been using a patched version of this on my personal site for about a month now without any adverse affects.
Comment #5
Brandonian commentedAnother bump. This is working well on two sites that I maintain. I can't change the status myself, but somebody should look at this. It's a ridiculously simple patch, and should be an easy one to check.
Comment #6
MrNeko commented@Brandonian Can I know how to get this to work? Apply the patch at #1 and copy simplepieautoloader.php to feeds/libraries?
Comment #7
Brandonian commented@MrNeko, thanks for wanting to take a look. Here's an easy way to test it.
Comment #8
ndeschildre commentedI can confirm it works, and images are correctly imported in filefields, following instructions from #7.
Comment #9
Brandonian commentedYah! Per #8, marking as reviewed/tested.
Comment #10
MrNeko commentedSorry forgot to post this back. Been using this on my site for 2 months now and it's working. Grabbing enclosures just fine.
However, I would like to parse an image in the description to an image field. Is it possible?
Sadly, I have no idea about php and simplepie. Is it something along the line of ..
function get_first_image_url($html)
{
if (preg_match('/ < img.+?src="(.+?)"/', $html, $matches)) {
return $matches[1];
}
else return 'default. jpg';
}
Comment #11
franzMrNeko, I think you can use Feeds Tamper
Comment #12
franzDon't we need this to be backwards compatible? Maybe it's ok to require Simple Pie 1.3 and remove support for 1.2 ... Just wondering.
Comment #13
twistor commentedHere's an initial go. I'm not too happy yet, but I think we need to support old versions. Also, this uses the single file download, rather than the autoloader business.
Comment #14
twistor commentedSimplepie 1.3 has been stabilized, so I added this. Feeds now supports the older, <= 1.2 simplepie.inc and the newer simplepie.mini.php and simplepie.compiled.php.
Should we backport this?
Comment #15
Rob_Feature commentedWhen trying to import using the dev version (and simplepie 1.3) I get:Not sure if this is a problem with the update or with my feed...This looks like it happens from an invalid enclosure...so it looks particular for my feed source.
Comment #16
twistor commentedHave you tried the latest version?
Comment #17
lyricnz commentedReimplemented using current dev code which does most of the work for us, including supporting the 1.2 versions.
Simply drop autoloader.php and the library directory from simplepie 1.3 into sites/all/libraries/simplepie (or similar), and apply patch.
(FWIW, it would actually work without any patch at all, if you renamed autoloader.php to simplepie.inc!)
Comment #18
js commentedI recall reading comments in the past that common_syndication_parser was preferred to SimplePie.
With 1.3 released, would that still be true?
Comment #19
lyricnz commentedDoes it matter?
Comment #20
js commentedI am guessing that most users would like to make the best choice. It is certainly the first question I had. If there are choices, how to select?
In my case I have performance concerns due to scale and am thinking of moving the functionality out of the main site, either into another site, or separate code, and push the results, post processing. It would likely be easier to use SimplePie in its own project, but I was asking for help, from the experience of others, before going down this path.
Comment #21
lyricnz commentedGood question, but offtopic for this issue.
Comment #22
mrP commented+1 RTBC #17
Comment #23
twistor commentedCommitted to 7.x. Thanks
http://drupalcode.org/project/feeds.git/commit/38d6ee8
Comment #23.0
twistor commentedAdded Simplepie info.
Comment #24
twistor commentedIf anyone feels like porting to 6.x. Feel free.