Skip to content

Commit

Permalink
Tidied metadata for clips
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Nov 7, 2024
1 parent 1f93e43 commit 15fc488
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3586,20 +3586,16 @@ function formatDuration(seconds){
let metadata = {
lat: parseFloat(config.latitude),
lon: parseFloat(config.longitude),
Artist: 'Chirpity',
version: VERSION
Artist: 'Chirpity ' + VERSION.toString(),
};
if (result) {
const date = new Date(result.timestamp);
metadata = {
...metadata,
UUID: config.UUID,
start: start,
end: end,
//filename: result.file,
cname: result.cname,
sname: result.sname,
score: parseInt(result.score),
Genre: result.sname.split(' ')[0],
Title: `${result.cname} - ${result.sname}`,
Track: parseInt(result.score),
Year: date.getFullYear()
};
}
Expand Down

0 comments on commit 15fc488

Please sign in to comment.