@storyteller-platform/audiobook 0.3.5 → 0.3.6
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/dist/ffmpeg.cjs +12 -12
- package/dist/ffmpeg.js +12 -12
- package/package.json +1 -1
package/dist/ffmpeg.cjs
CHANGED
|
@@ -90,7 +90,7 @@ function lookup(codecName) {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
async function getTrackMetadata(path) {
|
|
93
|
-
var _a, _b;
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
94
94
|
const stdout = await execCmd(
|
|
95
95
|
`ffprobe -i ${quotePath(path)} -v quiet -show_format -show_chapters -show_streams -output_format json`
|
|
96
96
|
);
|
|
@@ -133,17 +133,17 @@ async function getTrackMetadata(path) {
|
|
|
133
133
|
duration: parseFloat(format.duration),
|
|
134
134
|
bitRate: format.bit_rate !== void 0 ? parseFloat(format.bit_rate) : format.bit_rate,
|
|
135
135
|
tags: {
|
|
136
|
-
title: format.tags.title ?? format.tags.Title,
|
|
137
|
-
subtitle: format.tags.subtitle ?? format.tags.Subtitle,
|
|
138
|
-
date: format.tags.date ?? format.tags.Date,
|
|
139
|
-
album: format.tags.album ?? format.tags.Album,
|
|
140
|
-
albumArtist: format.tags.album_artist ?? format.tags.Album_Artist,
|
|
141
|
-
artist: format.tags.artist ?? format.tags.Artist,
|
|
142
|
-
performer: format.tags.performer ?? format.tags.Performer,
|
|
143
|
-
composer: format.tags.composer ?? format.tags.Composer,
|
|
144
|
-
comment: format.tags.comment ?? format.tags.Comment,
|
|
145
|
-
description: format.tags.description ?? format.tags.Description,
|
|
146
|
-
publisher: format.tags.publisher ?? format.tags.Publisher
|
|
136
|
+
title: ((_c = format.tags) == null ? void 0 : _c.title) ?? ((_d = format.tags) == null ? void 0 : _d.Title),
|
|
137
|
+
subtitle: ((_e = format.tags) == null ? void 0 : _e.subtitle) ?? ((_f = format.tags) == null ? void 0 : _f.Subtitle),
|
|
138
|
+
date: ((_g = format.tags) == null ? void 0 : _g.date) ?? ((_h = format.tags) == null ? void 0 : _h.Date),
|
|
139
|
+
album: ((_i = format.tags) == null ? void 0 : _i.album) ?? ((_j = format.tags) == null ? void 0 : _j.Album),
|
|
140
|
+
albumArtist: ((_k = format.tags) == null ? void 0 : _k.album_artist) ?? ((_l = format.tags) == null ? void 0 : _l.Album_Artist),
|
|
141
|
+
artist: ((_m = format.tags) == null ? void 0 : _m.artist) ?? ((_n = format.tags) == null ? void 0 : _n.Artist),
|
|
142
|
+
performer: ((_o = format.tags) == null ? void 0 : _o.performer) ?? ((_p = format.tags) == null ? void 0 : _p.Performer),
|
|
143
|
+
composer: ((_q = format.tags) == null ? void 0 : _q.composer) ?? ((_r = format.tags) == null ? void 0 : _r.Composer),
|
|
144
|
+
comment: ((_s = format.tags) == null ? void 0 : _s.comment) ?? ((_t = format.tags) == null ? void 0 : _t.Comment),
|
|
145
|
+
description: ((_u = format.tags) == null ? void 0 : _u.description) ?? ((_v = format.tags) == null ? void 0 : _v.Description),
|
|
146
|
+
publisher: ((_w = format.tags) == null ? void 0 : _w.publisher) ?? ((_x = format.tags) == null ? void 0 : _x.Publisher)
|
|
147
147
|
},
|
|
148
148
|
chapters: chapters.map(
|
|
149
149
|
(chapter) => ({
|
package/dist/ffmpeg.js
CHANGED
|
@@ -64,7 +64,7 @@ function lookup(codecName) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
async function getTrackMetadata(path) {
|
|
67
|
-
var _a, _b;
|
|
67
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
68
68
|
const stdout = await execCmd(
|
|
69
69
|
`ffprobe -i ${quotePath(path)} -v quiet -show_format -show_chapters -show_streams -output_format json`
|
|
70
70
|
);
|
|
@@ -107,17 +107,17 @@ async function getTrackMetadata(path) {
|
|
|
107
107
|
duration: parseFloat(format.duration),
|
|
108
108
|
bitRate: format.bit_rate !== void 0 ? parseFloat(format.bit_rate) : format.bit_rate,
|
|
109
109
|
tags: {
|
|
110
|
-
title: format.tags.title ?? format.tags.Title,
|
|
111
|
-
subtitle: format.tags.subtitle ?? format.tags.Subtitle,
|
|
112
|
-
date: format.tags.date ?? format.tags.Date,
|
|
113
|
-
album: format.tags.album ?? format.tags.Album,
|
|
114
|
-
albumArtist: format.tags.album_artist ?? format.tags.Album_Artist,
|
|
115
|
-
artist: format.tags.artist ?? format.tags.Artist,
|
|
116
|
-
performer: format.tags.performer ?? format.tags.Performer,
|
|
117
|
-
composer: format.tags.composer ?? format.tags.Composer,
|
|
118
|
-
comment: format.tags.comment ?? format.tags.Comment,
|
|
119
|
-
description: format.tags.description ?? format.tags.Description,
|
|
120
|
-
publisher: format.tags.publisher ?? format.tags.Publisher
|
|
110
|
+
title: ((_c = format.tags) == null ? void 0 : _c.title) ?? ((_d = format.tags) == null ? void 0 : _d.Title),
|
|
111
|
+
subtitle: ((_e = format.tags) == null ? void 0 : _e.subtitle) ?? ((_f = format.tags) == null ? void 0 : _f.Subtitle),
|
|
112
|
+
date: ((_g = format.tags) == null ? void 0 : _g.date) ?? ((_h = format.tags) == null ? void 0 : _h.Date),
|
|
113
|
+
album: ((_i = format.tags) == null ? void 0 : _i.album) ?? ((_j = format.tags) == null ? void 0 : _j.Album),
|
|
114
|
+
albumArtist: ((_k = format.tags) == null ? void 0 : _k.album_artist) ?? ((_l = format.tags) == null ? void 0 : _l.Album_Artist),
|
|
115
|
+
artist: ((_m = format.tags) == null ? void 0 : _m.artist) ?? ((_n = format.tags) == null ? void 0 : _n.Artist),
|
|
116
|
+
performer: ((_o = format.tags) == null ? void 0 : _o.performer) ?? ((_p = format.tags) == null ? void 0 : _p.Performer),
|
|
117
|
+
composer: ((_q = format.tags) == null ? void 0 : _q.composer) ?? ((_r = format.tags) == null ? void 0 : _r.Composer),
|
|
118
|
+
comment: ((_s = format.tags) == null ? void 0 : _s.comment) ?? ((_t = format.tags) == null ? void 0 : _t.Comment),
|
|
119
|
+
description: ((_u = format.tags) == null ? void 0 : _u.description) ?? ((_v = format.tags) == null ? void 0 : _v.Description),
|
|
120
|
+
publisher: ((_w = format.tags) == null ? void 0 : _w.publisher) ?? ((_x = format.tags) == null ? void 0 : _x.Publisher)
|
|
121
121
|
},
|
|
122
122
|
chapters: chapters.map(
|
|
123
123
|
(chapter) => ({
|