@christianriedl/media 1.0.159 → 1.0.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christianriedl/media",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.160",
|
|
4
4
|
"description": "RIC media interfaces",
|
|
5
5
|
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "Christian Riedl",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@christianriedl/utils": "^1.0.
|
|
21
|
+
"@christianriedl/utils": "^1.0.89",
|
|
22
22
|
"@christianriedl/rest": "^1.0.52",
|
|
23
23
|
"@christianriedl/epg": "^1.0.30"
|
|
24
24
|
},
|
|
@@ -294,7 +294,11 @@
|
|
|
294
294
|
origUrl = mediaService.getPhotoUrl(albumUrl.value, file.url, '0x0x0');
|
|
295
295
|
metadata['Album'] = albumName.value;
|
|
296
296
|
metadata['Name'] = file.name;
|
|
297
|
-
|
|
297
|
+
let fileName: string = albumUrl.value + file.url;
|
|
298
|
+
const idx = fileName.lastIndexOf('/');
|
|
299
|
+
if (idx > 0)
|
|
300
|
+
fileName = fileName.substring(idx + 1);
|
|
301
|
+
metadata['File'] = fileName;
|
|
298
302
|
if (exif) {
|
|
299
303
|
if (exif.Model)
|
|
300
304
|
metadata['Kamera'] = exif.Model;
|