wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Infobox w/ multiple genres returns empty array

Open admehta01 opened this issue 4 years ago • 0 comments

https://en.wikipedia.org/wiki/Tequila_(The_Champs_song)

Code:

const page = await wiki({ headers }).page('Tequila (The Champs song)');
const metadata = await Promise.all([
  page.categories(),
  page.info(),
]);

return metadata;

metadata[1]:

{
    name: 'Tequila',
    type: 'single',
    artist: 'The Champs',
    album: 'Go, Champs, Go!',
    bSide: 'Train to Nowhere',
    released: 'January 15, 1958',
    recorded: 'December 23, 1957',
    studio: [ 'Gold Star Recording Studio', 'Hollywood', 'California' ],
    genre: [],
    label: 'Challenge Records (1950s)',
    writer: 'Danny Flores',
    producer: 'Joe Johnson (Challenge Records)',
    nextTitle: 'Chariot Rock',
    nextYear: '1958',
}

admehta01 avatar Jun 06 '20 16:06 admehta01