[O] Catagorize files in type folders

This commit is contained in:
Hykilpikonna
2019-12-25 16:42:12 -05:00
parent dda9b6da57
commit b1681df13b
15 changed files with 2 additions and 1 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ class Artwork
if (json.video == null) json.video = type.video;
// Check image null case
let base = json.date.split(' ').join('-') + '-' + json.title.split(' ')[0].toLowerCase() + '/';
let 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: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 4.3 MiB

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Before

Width:  |  Height:  |  Size: 5.8 MiB

After

Width:  |  Height:  |  Size: 5.8 MiB

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Before

Width:  |  Height:  |  Size: 3.6 MiB

After

Width:  |  Height:  |  Size: 3.6 MiB

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 135 KiB

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB