From d675a1774106ed9988b797ac23c5e746b288fd5b Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 14 Apr 2023 22:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbclearn/bbc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bbclearn/bbc.go b/bbclearn/bbc.go index 1211472..0344610 100644 --- a/bbclearn/bbc.go +++ b/bbclearn/bbc.go @@ -18,6 +18,9 @@ func LearnParse(s string, recentDay int) string { var item []rss2.Item item = append(item, full(document, recentDay)) item = append(item, items(document, recentDay)...) + if len(item) < 1 { + return "" + } rss := rss2.Rss2{ Title: "BBC 英语教学", Link: "https://www.bbc.co.uk/learningenglish/chinese/",