View Full Version : Asked RSS Feed for 4 Galleries, it only gave me 3
darryl
Nov-07-2007, 01:49 PM
This is probably going to be a fleeting bug (like it'll go away as soon as somebody creates a new gallery), so hopefully DevBobo can take a look at it soon.
I'm pulling the Recent Gallery feed like so:
http://dgrin.smugmug.com/hack/feed.mg?Type=nickname&Data=dgrin&format=rss200&ImageCount=4
But on my site (which is private, sorry), I'm only getting 3 galleries (<item>'s) back.
Oh look it's broken for Dgrin too. Whew! So yeah, that query only returns *2* galleries. Isn't that odd?
I realize Image!=Gallery, but I think it was working properly up until today.
devbobo
Nov-08-2007, 04:18 AM
G'day Darryl,
I'll look into it. I believe that the issue might be related to removing albums that are either private or password protected without the correct access after truncating the resultset.
But I think it might always be a bit of a tradeoff, between speed and accuracy.
David
darryl
Nov-08-2007, 08:59 AM
Ah, that's right. There's a few private albums in there. Well, my script only takes the first 4 results. I guess I can just bump ImageCount up to 8 to be safe.
darryl
Nov-15-2007, 09:42 PM
*Bump* - Now that I'm getting closer to this AJAX Recent Galleries Home Page plug-in thing, it'd be nice if this was fixed so that people can actually specify how many galleries to display (without using the hack of grabbing extra galleries and then doing the count by hand.)
darryl
Dec-05-2007, 01:24 PM
*Rebump* -- I hate having to download more data than I really need.
darryl
Sep-16-2008, 09:49 PM
*Bumpdedump*
Wow, I haven't run into this in a while. Turns out that the number of galleries the feed returns when using ImageCount is also short when you've got a bunch of empty galleries.
Suuuuck.
Shouldn't you at least see "empty galleries" in the feed, assuming they're public?
So because I created about 9 empty galleries as placeholders, I have to pad my call to feed.mg by 10. :-P
darryl
Sep-16-2008, 09:52 PM
G'day Darryl,
I'll look into it. I believe that the issue might be related to removing albums that are either private or password protected without the correct access after truncating the resultset.
But I think it might always be a bit of a tradeoff, between speed and accuracy.
David
Huh -- you're already removing private albums based on permissions. How much more work would it be to have a counter increment when you actually *do* display a gallery, and simply cut off the feed when you reach the ImageCount, if set?
This would also apply to empty galleries. I'm actually glad they're not part of the feed, but it's annoying that they "count" towards the total number returned when specifying ImageCout.
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.