mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
fix wording and add even more question marks
This commit is contained in:
parent
845bad8a7e
commit
cfeca06ac9
@ -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,
|
||||||
|
@ -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 |
|
||||||
|
Loading…
Reference in New Issue
Block a user