fix rss
This commit is contained in:
parent
0921a59122
commit
8693914a86
1 changed files with 9 additions and 9 deletions
|
@ -2,15 +2,15 @@ from zzcore import StdAns
|
||||||
|
|
||||||
import feedparser, json
|
import feedparser, json
|
||||||
|
|
||||||
allowCMD = ['sub','unsub','list','get']
|
allowCMD = ['sub','unsub','list','disable']
|
||||||
|
|
||||||
allSub = [
|
# allSub = {
|
||||||
{
|
# 'https://farseerfc.me/feeds/atom.xml' : {
|
||||||
'url' : 'https://farseerfc.me/feeds/atom.xml',
|
# 'url' : 'https://farseerfc.me/feeds/atom.xml',
|
||||||
'title' : 'Farseerfc的小窩',
|
# 'title' : 'Farseerfc的小窩',
|
||||||
'lastUpdated' : 'Sat, 12 Dec 2020 22:55:52 +0800',
|
# 'lastUpdated' : 'Sat, 12 Dec 2020 22:55:52 +0800',
|
||||||
}
|
# }
|
||||||
]
|
# }
|
||||||
|
|
||||||
class Ans(StdAns):
|
class Ans(StdAns):
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ class Ans(StdAns):
|
||||||
msg = '订阅列表'
|
msg = '订阅列表'
|
||||||
|
|
||||||
for sub in nowdata['allSub']:
|
for sub in nowdata['allSub']:
|
||||||
msg += f'\n{sub.title} {sub.url}'
|
msg += f"\n{sub['title']} {sub['url']}"
|
||||||
|
|
||||||
elif cmd == 'enable':
|
elif cmd == 'enable':
|
||||||
nowdata['status'] = True
|
nowdata['status'] = True
|
||||||
|
|
Loading…
Reference in a new issue