This commit is contained in:
xing 2023-04-14 22:46:06 +08:00
parent 8e30297639
commit d675a17741

View File

@ -18,6 +18,9 @@ func LearnParse(s string, recentDay int) string {
var item []rss2.Item var item []rss2.Item
item = append(item, full(document, recentDay)) item = append(item, full(document, recentDay))
item = append(item, items(document, recentDay)...) item = append(item, items(document, recentDay)...)
if len(item) < 1 {
return ""
}
rss := rss2.Rss2{ rss := rss2.Rss2{
Title: "BBC 英语教学", Title: "BBC 英语教学",
Link: "https://www.bbc.co.uk/learningenglish/chinese/", Link: "https://www.bbc.co.uk/learningenglish/chinese/",