alangrainger / obsidian-google-photos

Connect to Google Photos from Obsidian
GNU General Public License v3.0
93 stars 5 forks source link

Display all photos from a specific album #5

Closed kngautham closed 1 year ago

kngautham commented 1 year ago

I used the following code for displaying photos from an album called Cool.

I used the code from the Google Developers page https://developers.google.com/photos/library/reference/rest/v1/mediaItems/search

Error I get is Malformed input. Please check the filters you are using.

{
  "albumId": "Cool"
}

Can you tell me the right format to display photos from specific albums. Thanks

alangrainger commented 1 year ago

The album ID is a random internal ID assigned by Google, so you can't do it as you have it there. But it's an interesting idea that I could implement to be able to show albums. What would be the benefit of having them inside Obsidian vs viewing them normally in Google Photos?

kngautham commented 1 year ago

Your implementation will allow me to view the images in one place and if I need to view the high resolution image for further reading, I can go to the main album. Your implementation will make it easy for quick viewing.

alangrainger commented 1 year ago

But you can already view all your Google Photos in one place - in Google Photos. What would be the benefit of having them inside Obsidian vs viewing them normally in Google Photos? I'm trying to understand the need so I can understand how and if the feature could be added. The more info the better.

tecnoborder commented 1 year ago

+1 to add the option to see albums sn Obsidian. Use case (illustrative): I have in obsidian a note called "Home" structured into different markdown sections (##) and a series of Albums on Google photos per each home I lived in. I want to access these albums on the "Home" page. The same for Vacations structures into cities that I visited along with contextual information per each travel.

tecnoborder commented 1 year ago

The great thing about having albums in Obsidian is the integrated experience I can have between different types of media

alangrainger commented 1 year ago

Makes sense, I'll add that in a future release.

alangrainger commented 1 year ago

This is now available in v1.4.0 - please update and check it out.

NOTE: