Asked RSS Feed for 4 Galleries, it only gave me 3

darryldarryl 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.

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited November 8, 2007
    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
    David Parry
    SmugMug API Developer
    My Photos
  • darryldarryl Registered Users Posts: 997 Major grins
    edited November 8, 2007
    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.
  • darryldarryl Registered Users Posts: 997 Major grins
    edited November 16, 2007
    *Bump* - Now that I'm getting closer to this [post=682047]AJAX Recent Galleries Home Page plug-in thing[/post], 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.)
  • darryldarryl Registered Users Posts: 997 Major grins
    edited December 5, 2007
    *Rebump* -- I hate having to download more data than I really need.
  • darryldarryl Registered Users Posts: 997 Major grins
    edited September 17, 2008
    *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
  • darryldarryl Registered Users Posts: 997 Major grins
    edited September 17, 2008
    devbobo wrote:
    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.
Sign In or Register to comment.