ImageCount in smugmug.albums.get incorrect...

mattwrightmattwright Registered Users Posts: 124 Major grins
I encountered an error where the ImageCount returned for an album in smugmug.albums.get (heavy=1) returned 0 when there were over 100 images in that gallery. When I visited it on the web site, it had problems displaying the gallery for a minute, then it worked and the ImageCount was also updated in the API call. Is this a known bug and is the only workaround to have the user visit their gallery?

Matt

Comments

  • ebswiftebswift Registered Users Posts: 94 Big grins
    edited January 21, 2009
    mattwright wrote:
    I encountered an error where the ImageCount returned for an album in smugmug.albums.get (heavy=1) returned 0 when there were over 100 images in that gallery. When I visited it on the web site, it had problems displaying the gallery for a minute, then it worked and the ImageCount was also updated in the API call. Is this a known bug and is the only workaround to have the user visit their gallery?

    Matt
    This is something I reported quite some time ago but so far I have not been able to raise a response.

    Try Smugfoto in Facebook for displaying your SmugMug galleries.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 23, 2009
    Can you please give me a sample gallery to check out ?

    Thanks,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • ebswiftebswift Registered Users Posts: 94 Big grins
    edited January 24, 2009
    devbobo wrote:
    Can you please give me a sample gallery to check out ?

    Thanks,

    David
    Here you go:

    http://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.albums.getInfo&AlbumID=7179816&AlbumKey=oZTv2

    Obviously, minus the session and the api key.

    I uploaded three images into it. The album's called 'test'. The imagecount will go to three when someone views that gallery. It's easy to reproduce, just upload a couple of images into a new album, then call the API to view the imagecount.

    Try Smugfoto in Facebook for displaying your SmugMug galleries.
  • mattwrightmattwright Registered Users Posts: 124 Major grins
    edited January 26, 2009
    Also happens for old albums sometimes...
    ebswift wrote:
    It's easy to reproduce, just upload a couple of images into a new album, then call the API to view the imagecount.

    Also, while it is easy to reproduce with new albums, it can also happen to an existing album. I presume this is if it goes a long time without any views and SmugMug removes it from some active database...
  • ebswiftebswift Registered Users Posts: 94 Big grins
    edited January 26, 2009
    mattwright wrote:
    Also, while it is easy to reproduce with new albums, it can also happen to an existing album. I presume this is if it goes a long time without any views and SmugMug removes it from some active database...
    Yep, I think it also occurs if you add a photo or something; it resets to zero until you view the album.

    I think that sample I gave has made its way into the main database, so you may need to reproduce it manually David - though it's pretty quick & easy to do.

    Try Smugfoto in Facebook for displaying your SmugMug galleries.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 15, 2009
    Hey Guys,

    This has been fixed internally for API versions 1.2.0, 1.2.1 & 1.2.2. And should go out with our next release.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • mattwrightmattwright Registered Users Posts: 124 Major grins
    edited February 16, 2009
    devbobo wrote:
    This has been fixed internally for API versions 1.2.0, 1.2.1 & 1.2.2. And should go out with our next release.
    Awesome -- thanks!

    Matt
  • ebswiftebswift Registered Users Posts: 94 Big grins
    edited February 18, 2009
    Thanks David.

    Try Smugfoto in Facebook for displaying your SmugMug galleries.
Sign In or Register to comment.