Update folders
@@ -30,8 +30,18 @@ class Artwork
|
||||
if (json.video == null) json.video = type.video;
|
||||
|
||||
// Check image null case
|
||||
let base = type.type.toLowerCase() + '/' +
|
||||
json.date.split(' ').join('-') + '-' + json.title.split(' ')[0].toLowerCase() + '/';
|
||||
let base;
|
||||
if (type.folder != null)
|
||||
{
|
||||
base = type.folder.toLowerCase() + '/' +
|
||||
json.date.split(' ').join('-') + '-' + json.title.split(' ')[0].toLowerCase() + '/';
|
||||
}
|
||||
else
|
||||
{
|
||||
base = type.type.toLowerCase() + '/' +
|
||||
json.date.split(' ').join('-') + '-' + json.title.split(' ')[0].toLowerCase() + '/';
|
||||
}
|
||||
|
||||
if (json.file == null) json.file = base + 'public.' + json.format;
|
||||
if (json.thumbnail == null) json.thumbnail = base + 'thumb.' + json.format;
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 4.3 MiB |
|
Before Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 5.8 MiB |
|
Before Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 3.6 MiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 11 MiB |
|
Before Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 3.2 MiB |
|
Before Width: | Height: | Size: 126 KiB |
@@ -25,7 +25,8 @@
|
||||
"types":
|
||||
[
|
||||
{
|
||||
"type": "Painting",
|
||||
"type": "Drawing & Painting",
|
||||
"folder": "painting",
|
||||
"posts":
|
||||
[
|
||||
{
|
||||
|
||||