Crash when using album.ini
I open the issue as I don't have the time to debug it these days...
My demo site is broken since a few weeks. It updates the code from https://gitlab.com/paolobenve/myphotoshare (today 86f539fb..b1a3e66f development -> origin/development) then run the scanner, that crashes with error
20 2022-10-17 07:37:26.157229 [PRE Expanding page title (string) to dictionary] page_title = 'DEMO MyPhotoShare' in options file
28 2022-10-17 07:37:26.157257 [PRE geonames_language and language options unset] using system language (fr) for geonames_language option
11970 2022-10-17 07:37:26.169227 [PRE WARNING] /etc/myphotoshare/myphotoshare.excluded doesn't exist or unreadable, not using it
491 2022-10-17 07:37:26.169718 [PRE options] trying to create /var/www/html/myphotoshare_demo/cache/_tiny_urls.json (if it doesn't exist)...
99 2022-10-17 07:37:26.169817 [PRE options] /var/www/html/myphotoshare_demo/cache/_tiny_urls.json created (it didn't exist)!
41 2022-10-17 07:37:26.169858 [PRE options: Nonexistent options.json file] forcing recreation of everything unless options.json.<timestamp>'s exist'
525729 2022-10-17 07:37:26.695587 [Saving password/codes files...]
440755 2022-10-17 07:37:27.136342 [Browsing] start!
237 2022-10-17 07:37:27.136579 [>>>>>>>>>>> Entering directory] /var/www/html/myphotoshare_demo/albums
113 2022-10-17 07:37:27.136692 [not an album cache hit] json files not found in cache dir
main()
File "/var/www/html/myphotoshare_demo/myphotoshare/scanner/main.py", line 73, in main
TreeWalker()
File "/var/www/html/myphotoshare_demo/myphotoshare/scanner/TreeWalker.py", line 174, in __init__
[folders_album, passwords_or_album_ini_processed] = self.walk(
File "/var/www/html/myphotoshare_demo/myphotoshare/scanner/TreeWalker.py", line 3248, in walk
album.read_album_ini(album_ini_file)
File "/var/www/html/myphotoshare_demo/myphotoshare/scanner/PhotoAlbum.py", line 318, in read_album_ini
Metadata.set_metadata_from_album_ini("album", self)
File "/var/www/html/myphotoshare_demo/myphotoshare/scanner/PhotoAlbum.py", line 5277, in set_metadata_from_album_ini
attributes = single_media.attributes
AttributeError: 'Album' object has no attribute 'attributes'
As the Primary demo site uses similar code and pictures (I assume), I don't understand why my version of the scanner code would crash...