|
|
|
|
@ -53,7 +53,6 @@ class Theme():
|
|
|
|
|
if os.path.splitext(f)[1] in self.fileExtList] |
|
|
|
|
self.data[dirpath]['subdir'] = [d for d in dirnames if d not in ignored] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_meta_value(self, data): |
|
|
|
|
""" |
|
|
|
|
Return the value for a line like: |
|
|
|
|
@ -69,7 +68,6 @@ class Theme():
|
|
|
|
|
|
|
|
|
|
return data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_metadata(self, path): |
|
|
|
|
""" |
|
|
|
|
Get album metadata from DESCRIPTION_FILE: |
|
|
|
|
@ -90,7 +88,6 @@ class Theme():
|
|
|
|
|
if "album_representative" in l: |
|
|
|
|
self.data[path]['representative'] = self.get_meta_value(l) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def find_representative(self, path): |
|
|
|
|
""" |
|
|
|
|
find the representative image for a given album/path |
|
|
|
|
@ -114,6 +111,7 @@ class Theme():
|
|
|
|
|
Render the html page |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
|
# copy static files in the output dir |
|
|
|
|
copy_tree(os.path.abspath(self.theme_dir), os.path.abspath(self.path)) |
|
|
|
|
|
|
|
|
|
self.directory_list() |
|
|
|
|
@ -154,7 +152,7 @@ class Theme():
|
|
|
|
|
|
|
|
|
|
album = { |
|
|
|
|
'path': os.path.join(d, INDEX_PAGE), |
|
|
|
|
'name': self.data[dirpath]['title'], |
|
|
|
|
'title': self.data[os.path.join(dirpath, d)]['title'], |
|
|
|
|
'thumb': os.path.join(d, self.thumb_dir, |
|
|
|
|
self.thumb_prefix+alb_thumb), |
|
|
|
|
} |
|
|
|
|
|