update tidal embed

This commit is contained in:
hzrd149
2023-02-07 17:04:18 -06:00
parent 92ccf31d32
commit 40d9b4937c

View File

@@ -40,10 +40,10 @@ const embeds: { regexp: RegExp; render: (match: RegExpMatchArray, trusted: boole
}, },
// Tidal // Tidal
{ {
regexp: /https?:\/\/tidal\.com\/track\/(\d+)/im, regexp: /https?:\/\/tidal\.com(\/browse)?\/track\/(\d+)/im,
render: (match) => ( render: (match) => (
<iframe <iframe
src={`https://embed.tidal.com/tracks/${match[1]}?disableAnalytics=true`} src={`https://embed.tidal.com/tracks/${match[2]}?disableAnalytics=true`}
width="100%" width="100%"
height="96" height="96"
></iframe> ></iframe>