mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Do no rewrite Youtube description twice in "add_youtube_video" rule
This is already done before in <media:description>.
This commit is contained in:
parent
6291b59849
commit
120d6ec7d8
2 changed files with 3 additions and 3 deletions
|
@ -143,7 +143,7 @@ func addYoutubeVideo(entryURL, entryContent string) string {
|
|||
|
||||
if len(matches) == 2 {
|
||||
video := `<iframe width="650" height="350" frameborder="0" src="https://www.youtube-nocookie.com/embed/` + matches[1] + `" allowfullscreen></iframe>`
|
||||
return video + "<p>" + replaceLineFeeds(replaceTextLinks(entryContent)) + "</p>"
|
||||
return video + `<br>` + entryContent
|
||||
}
|
||||
return entryContent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue