dijs / wiki

Wikipedia Interface for Node.js
MIT License
315 stars 61 forks source link

Infobox w/ multiple genres returns empty array #141

Open admehta01 opened 4 years ago

admehta01 commented 4 years ago

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',
}