完善
This commit is contained in:
parent
8e30297639
commit
d675a17741
|
@ -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/",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user