fix wording and add even more question marks

This commit is contained in:
nexpid 2025-06-07 22:09:37 +02:00
parent 845bad8a7e
commit cfeca06ac9
No known key found for this signature in database
GPG Key ID: CF60FCAF668E3F3F
2 changed files with 6 additions and 6 deletions

View File

@ -113,9 +113,9 @@ export default async function(obj) {
if (!file) return { error: "fetch.empty" }; if (!file) return { error: "fetch.empty" };
const artist = json.user.username.trim(); const artist = json.user?.username?.trim();
const fileMetadata = { const fileMetadata = {
title: json.title.trim(), title: json.title?.trim(),
album: json.publisher_metadata?.album_title?.trim(), album: json.publisher_metadata?.album_title?.trim(),
artist, artist,
album_artist: artist, album_artist: artist,

View File

@ -132,14 +132,14 @@ all keys in this table are optional.
| key | type | description | | key | type | description |
|:---------------|:---------|:-------------------------------------------| |:---------------|:---------|:-------------------------------------------|
| `album` | `string` | album name or collection title | | `album` | `string` | album name or collection title |
| `composer` | `string` | composter of the track | | `composer` | `string` | composer of the track |
| `genre` | `string` | genre or genres of the track | | `genre` | `string` | track's genre(s) |
| `copyright` | `string` | copyright information or ownership details | | `copyright` | `string` | copyright information or ownership details |
| `title` | `string` | title of the track or media file | | `title` | `string` | title of the track or media file |
| `artist` | `string` | artist or creator name | | `artist` | `string` | artist or creator name |
| `album_artist` | `string` | artist or creator name of the album | | `album_artist` | `string` | album's artist or creator name |
| `track` | `string` | track number or position in album | | `track` | `string` | track number or position in album |
| `date` | `string` | release year or creation year | | `date` | `string` | release date or creation date |
#### audio object #### audio object
| key | type | value | | key | type | value |