mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Add a rewrite rule for castopod episodes
This commit is contained in:
parent
7a1429bcc1
commit
808635e314
3 changed files with 17 additions and 0 deletions
|
@ -282,3 +282,9 @@ func removeCustom(entryContent string, selector string) string {
|
|||
output, _ := doc.Find("body").First().Html()
|
||||
return output
|
||||
}
|
||||
|
||||
func addCastopodEpisode(entryURL, entryContent string) string {
|
||||
player := `<iframe width="650" frameborder="0" src="` + entryURL + `/embed/light"></iframe>`
|
||||
|
||||
return player + `<br>` + entryContent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue