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/",