Script fails to find album if no user created albums are present.

Issue #5 resolved
giantpune created an issue

In my photobucket account, I never explicitly created an account. My images all get uploaded to the "Your Bucket" account. When I run the php script, it is unable to find any albums. Inserting this block of debugging

    $albums = getAlbumsFromData($albumsData['body']['subAlbums']);

    var_dump($albums);

    return $albums;

and it shows

sh
Get albums...
array(0) {
}

After I go into the webpage and create an album manually, the script works and even finds the default album and grabs the images.

Comments (4)

  1. Michel van Heijster repo owner

    The script needs at least one album to determine the path to your "default" album. I couldn't find a way to do it without albums, and since it is easy to just add an album like you did, I didn't look further. Will add a note about this to the script and the README :)

  2. Log in to comment