Skip to content

Commit

Permalink
domains: fix title for Spotify audiobooks
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Jul 11, 2024
1 parent f0c7d1c commit 6b317d6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions plugins/domains/spotify.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ export default {

getMeta: function(meta) {
return {
date: meta.music && meta.music.release_date,
author: meta.twitter && meta.twitter.audio && meta.twitter.audio.artist_name,
author_url: meta.music && meta.music.musician,
duration: meta.music && meta.music.duration,
description: meta.og && meta.og.description,
canonical: meta.og && meta.og.url,
site: meta.og && meta.og.site_name || 'Spotify'
title: meta.og?.title || meta.twitter?.title, //oembed.title is subpar for audiobooks
date: meta.music?.release_date,
author: meta.twitter?.audio?.artist_name,
author_url: meta.music?.musician,
duration: meta.music?.duration,
description: meta.og?.description || meta.twitter?.description,
canonical: meta.og?.url,
site: meta.og?.site_name || 'Spotify'
}
},

Expand Down

0 comments on commit 6b317d6

Please sign in to comment.