projects
/
kiosk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More changes related to running on new kiosk.house.
[kiosk.git]
/
local_photos_mirror_renderer.py
diff --git
a/local_photos_mirror_renderer.py
b/local_photos_mirror_renderer.py
index 287bdd697ecdfad96c93e47aa12619463cee54f9..84958de0a774cd3f6fd276d5134bcc87d8a84f34 100644
(file)
--- a/
local_photos_mirror_renderer.py
+++ b/
local_photos_mirror_renderer.py
@@
-12,7
+12,7
@@
import renderer
class local_photos_mirror_renderer(renderer.debuggable_abstaining_renderer):
"""A renderer that uses a local mirror of Google photos"""
class local_photos_mirror_renderer(renderer.debuggable_abstaining_renderer):
"""A renderer that uses a local mirror of Google photos"""
- album_root_directory = "/var/www/
kiosk/pages
/images/gphotos/albums"
+ album_root_directory = "/var/www/
html/kiosk
/images/gphotos/albums"
album_whitelist = frozenset(
[
album_whitelist = frozenset(
[
@@
-36,9
+36,11
@@
class local_photos_mirror_renderer(renderer.debuggable_abstaining_renderer):
"Newer Alex Photos",
"Ohme Gardens",
"Olympic Sculpture Park",
"Newer Alex Photos",
"Ohme Gardens",
"Olympic Sculpture Park",
+ "Portland, ME 2021",
"Prague and Munich 2019",
"Random",
"Scott and Lynn",
"Prague and Munich 2019",
"Random",
"Scott and Lynn",
+ "Sculpture Place",
"SFO 2014",
"Skiing with Alex",
"Sonoma",
"SFO 2014",
"Skiing with Alex",
"Sonoma",
@@
-47,6
+49,7
@@
class local_photos_mirror_renderer(renderer.debuggable_abstaining_renderer):
"Trip to East Coast '16",
"Tuscany 2008",
"Yosemite 2010",
"Trip to East Coast '16",
"Tuscany 2008",
"Yosemite 2010",
+ "WA Roadtrip, 2021",
"Zoo",
]
)
"Zoo",
]
)
@@
-94,7
+97,7
@@
class local_photos_mirror_renderer(renderer.debuggable_abstaining_renderer):
if extension in self.extension_whitelist:
photo_path = os.path.join(root, filename)
photo_url = photo_path.replace(
if extension in self.extension_whitelist:
photo_path = os.path.join(root, filename)
photo_url = photo_path.replace(
- "/var/www/", "http://kiosk.house/", 1
+ "/var/www/
html
", "http://kiosk.house/", 1
)
self.candidate_photos.add(photo_url)
return True
)
self.candidate_photos.add(photo_url)
return True