pub / yt2html

Fetches Youtube content via RSS and provides a chronological timeline
git clone https://src.jayvii.de/pub/yt2html.git
Home | Log | Files | Exports | Refs | README | RSS

commit f5a116e1b3cb1e0b7a4741d82b08e00f54f7a749
parent 14763cf3bdcc09f2a60961423d057165aa9a22c8
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Tue, 21 May 2024 22:08:11 +0200

ensure template is read as UTF-8

Diffstat:
Myt.R | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yt.R b/yt.R @@ -138,7 +138,7 @@ entry <- paste0("<article class='post-entry' id='entry_", seq_len(nrow(data)), " entry <- head(entry, n = 200) # additional HTML ------------------------------------------------------------- -template <- paste0(readLines("./template.html"), "\n") %>% +template <- paste0(readLines("./template.html", encoding = "UTF-8"), "\n") %>% sub(pattern = "%%TITLE%%", replacement = "Video-Feed") top <- paste0("<p>Last Updated: ", Sys.time(), "</p>\n<hr>\n\n") top_mainfeed <- paste0("<details>\n<summary class=\"button\">Channel List</summary>\n",