Asked RSS Feed for 4 Galleries, it only gave me 3
darryl
Registered Users Posts: 997 Major grins
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.
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.
0
Comments
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
SmugMug API Developer
My Photos
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
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.