Update folders

This commit is contained in:
ytian21
2019-12-30 14:33:10 -05:00
parent 19c746cf56
commit bad4daa889
14 changed files with 14 additions and 3 deletions
+12 -2
View File
@@ -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;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

+2 -1
View File
@@ -25,7 +25,8 @@
"types":
[
{
"type": "Painting",
"type": "Drawing & Painting",
"folder": "painting",
"posts":
[
{