Wow. Great Work. Your code worked first time for me and showed me a photo from my Google Photo Library that I took on Thursday.
Now, I'm going to read your code and discover how you did that. Amazing.
I'm the retired maintainer of Exiv2 the C++ Metadata Library. exiv2.org
I'm rebuilding my web-site from scratch because it's 20 years old, has 80,000 photos in 2000 albums, 400,000 files and occupies 10GB on the web-server. I'm going to store the photos on Google Photos and generate the photo albums in JavaScript. I've made good progress and confident that the web-site will be less than 100mb by the end of September. Here's a typical album web-page: clanmills.com/2021/Lizzie
The code for the page is:
505 rmills@rmillsm1:~/clanmills $ cat 2021/Lizzie/default.shtml
<!--#include virtual="/albumhead.inc" -->
<!--#include virtual="/menu.inc" -->
<!--#include virtual="/albumtail.inc" -->
<script type="text/javascript">
var title ="Lizzie"
var data ='https://photos.app.goo.gl/sQRaVMZiyTr5T74y8'
var updated ='2021-08-20 14:52:25'
buildPage();
</script>
506 rmills@rmillsm1:~/clanmills $
The next job is to understand enough Python/REST/Photos magic to generate the list of album files automatically. The script will run once a day at home and update clanmills.com. So, when I take photos with my phone, they be posted on clanmills.com without moving a finger.
Thanks to your python code, I'm confident of success. Thank You Very Much.
You are welcome. I made the lib to script access to my wedding pics myself, so I guess your use case should be not too difficult to tackle as well.
Good luck 🤞
0a1
> from collections.abc import Iterable
533,534c534,536
< for album in curr_list:
< yield album
---
> if isinstance(curr_list, Iterable):
> for album in curr_list:
> yield album
Question. Is the code in GitHub. Can I provide a PR if I find other issues?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Wow. Great Work. Your code worked first time for me and showed me a photo from my Google Photo Library that I took on Thursday.
Now, I'm going to read your code and discover how you did that. Amazing.
I'm the retired maintainer of Exiv2 the C++ Metadata Library. exiv2.org
I'm rebuilding my web-site from scratch because it's 20 years old, has 80,000 photos in 2000 albums, 400,000 files and occupies 10GB on the web-server. I'm going to store the photos on Google Photos and generate the photo albums in JavaScript. I've made good progress and confident that the web-site will be less than 100mb by the end of September. Here's a typical album web-page: clanmills.com/2021/Lizzie
The code for the page is:
The next job is to understand enough Python/REST/Photos magic to generate the list of album files automatically. The script will run once a day at home and update clanmills.com. So, when I take photos with my phone, they be posted on clanmills.com without moving a finger.
Thanks to your python code, I'm confident of success. Thank You Very Much.
You are welcome. I made the lib to script access to my wedding pics myself, so I guess your use case should be not too difficult to tackle as well.
Good luck 🤞
Davide: I love your code. It's beautiful and clear.
I fixed a tiny bug in album.py. When I iterate the albums (I have 250 albums) the loop dies at the end saying "object isn't interable:"
Here's my fix:
Question. Is the code in GitHub. Can I provide a PR if I find other issues?