mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-13 06:09:42 +02:00
add support for spotify podcast episodes
This commit is contained in:
parent
a3304baed7
commit
5d3f269b43
@ -55,7 +55,7 @@ const embeds: {
|
||||
},
|
||||
// Spotify
|
||||
{
|
||||
regexp: /https?:\/\/open\.spotify\.com\/track\/(\w+)[^\s]+/im,
|
||||
regexp: /https?:\/\/open\.spotify\.com\/(track|episode)\/(\w+)[^\s]+/im,
|
||||
render: (match) => (
|
||||
<iframe
|
||||
style={{ borderRadius: "12px" }}
|
||||
@ -66,7 +66,7 @@ const embeds: {
|
||||
allowFullScreen
|
||||
allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"
|
||||
loading="lazy"
|
||||
src={`https://open.spotify.com/embed/track/${match[1]}`}
|
||||
src={`https://open.spotify.com/embed/${match[1]}/${match[2]}`}
|
||||
></iframe>
|
||||
),
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user