Quan666 / ELF_RSS

QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub
https://myelf.club/archives/221
GNU General Public License v3.0
563 stars 57 forks source link

summary字段不存在 #547

Closed Zxis233 closed 1 month ago

Zxis233 commented 1 month ago

ELF_RSS 、 go-cqhttp 、 nonebot 、 Python 版本及操作系统

ELF_RSS:  2.6.23
Nonebot2: 2.3.3
Python:   3.10.12

列出安装的 Python 包

aiodns==3.0.0
aiofiles==0.8.0
aiohttp==3.9.5
aiosignal==1.2.0
annotated-types==0.6.0
anyio==3.6.1
appdirs==1.4.4
APScheduler==3.10.4
apturl==0.5.2
argcomplete==3.0.5
arrow==1.3.0
asgiref==3.5.2
async-asgi-testclient==1.4.11
async-timeout==4.0.3
attrs==23.1.0
bbcode==1.1.0
beautifulsoup4==4.11.1
bilireq==0.2.11
binaryornot==0.4.4
blinker==1.4
Brlapi==0.8.3
Brotli==1.1.0
bullet==2.2.0
cachetools==5.3.3
cairocffi==1.4.0
CairoSVG==2.5.2
cashews==6.2.0
catfish==4.16.3
cchardet==2.1.7
certifi==2020.6.20
cffi==1.15.1
chardet==4.0.0
charset-normalizer==2.1.0
chrome-gnome-shell==0.0.0
CJKwrap==2.2
click==8.1.3
colorama==0.4.4
command-not-found==0.3
configobj==5.0.8
contourpy==1.0.7
cookiecutter==2.3.0
cryptography==3.4.8
cssselect==1.2.0
cssselect2==0.7.0
cupshelpers==1.0
curl-cffi==0.5.10
cycler==0.11.0
dataclasses-json==0.6.4
DataRecorder==3.5.3
dblatex==0.3.12
dbus-python==1.2.18
deep-translator==1.11.4
defer==1.0.6
defusedxml==0.7.1
deprecation==2.1.0
devscripts==1.0.0
distlib==0.3.6
distro==1.7.0
distro-info==1.1+ubuntu0.2
dnspython==2.1.0
docker==5.0.3
docker-compose==1.29.2
dockerpty==0.4.1
docopt==0.6.2
dotty-dict==1.3.1
DownloadKit==2.0.2
DrissionPage==4.0.5.6
efb-telegram-master==2.3.1
efb-wechat-slave==2.0.7
ehforwarderbot==2.1.1
ELF_RSS==2.6.23
emoji==2.14.0
et-xmlfile==1.1.0
exceptiongroup==1.1.0
fastapi==0.98.0
feedparser==6.0.11
ffmpeg-python==0.2.0
filelock==3.11.0
fonttools==4.38.0
frozenlist==1.3.0
future==0.18.2
fuzzywuzzy==0.18.0
google-ai-generativelanguage==0.4.0
google-api-core==2.17.0
google-auth==2.27.0
google-generativeai==0.3.2
googleapis-common-protos==1.62.0
GoogleBard==2.1.0
gpg==1.16.0
greenlet==2.0.1
grpcio==1.60.1
grpcio-status==1.60.1
h11==0.14.0
halo==0.0.31
hid==1.0.5
hjson==3.1.0
httpcore==1.0.5
httplib2==0.20.2
httptools==0.5.0
httpx==0.27.0
humanize==4.4.0
idna==3.3
ImageHash==4.3.1
img2pdf==0.4.4
importlib-metadata==6.8.0
iniconfig==2.0.0
iotop==0.6
jeepney==0.7.1
jieba==0.42.1
Jinja2==3.1.2
jinja2-time==0.2.0
jsonpatch==1.33
jsonpointer==2.4
jsonschema==4.20.0
jsonschema-specifications==2023.11.1
keyring==23.5.0
kiwisolver==1.4.4
langchain==0.0.336
langsmith==0.0.90
language-selector==0.1
language-tags==1.1.0
launchpadlib==1.10.16
lazr.restfulclient==0.14.4
lazr.uri==1.0.6
Levenshtein==0.20.9
lightdm-gtk-greeter-settings==1.2.2
linkify-it-py==2.0.2
log-symbols==0.0.14
loguru==0.6.0
lottie==0.7.0
louis==3.20.0
lxml==4.9.2
macaroonbakery==1.3.1
magneturi==1.3
Mako==1.1.3
Markdown==3.3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.1
marshmallow==3.20.2
matplotlib==3.6.3
mdit-py-plugins==0.4.0
mdurl==0.1.2
menulibre==2.2.2
milc==1.6.8
more-itertools==8.10.0
msgpack==1.0.4
mugshot==0.4.3
multidict==6.0.2
mypy-extensions==1.0.0
Naked==0.1.31
nb-cli==1.2.4
netifaces==0.11.0
nonebot-adapter-console==0.4.0
nonebot-adapter-onebot==2.4.5
nonebot-plugin-apscheduler==0.5.0
nonebot-plugin-bilichat==1.0.0
nonebot-plugin-guild-patch==0.2.3
nonebot-plugin-htmlrender==0.2.0.1
nonebot-plugin-imageutils==0.1.17
nonebot-plugin-localstore==0.4.1
nonebot-plugin-manager==0.5.14
nonebot-plugin-PicMenu==0.2
nonebot-plugin-remake==0.2.7
nonebot-plugin-status==0.6.1
nonebot2==2.3.3
nonebug==0.2.2
nonechat==0.2.1
noneprompt==0.1.9
numpy==1.23.1
oauthlib==3.2.0
olefile==0.46
onboard==1.4.1
onepush==1.3.0
openai==0.27.7
OpenCC==1.1.4
opencv-python-headless==4.7.0.68
openpyxl==3.1.5
packaging==23.0
peewee==3.15.4
pexpect==4.8.0
pikepdf==8.4.0
PikPakAPI==0.1.6
pil-utils==0.1.8
pillow==10.4.0
pipreqs==0.4.11
pipx==1.2.0
platformdirs==2.6.2
playwright==1.30.0
pluggy==1.0.0
ply==3.11
poyo==0.5.0
pretty-errors==1.2.25
prompt-toolkit==3.0.30
proto-plus==1.23.0
protobuf==4.24.3
psutil==5.9.1
ptyprocess==0.7.0
pyaes==1.6.1
pyasn1==0.4.8
pyasn1-modules==0.3.0
pycairo==1.20.1
pycares==4.2.1
pycparser==2.21
pycryptodome==3.15.0
pycups==2.0.1
pydantic==1.10.18
pydantic_core==2.14.6
pydub==0.25.1
pyee==9.0.4
pyfiglet==0.8.post1
Pygments==2.16.1
PyGObject==3.42.1
pygtrie==2.5.0
pyinotify==0.9.6
PyJWT==2.3.0
pymacaroons==0.13.0
pymdown-extensions==9.9.2
PyNaCl==1.5.0
pyparsing==2.4.7
pypinyin==0.49.0
pypng==0.20220715.0
PyQRCode==1.2.1
pyquery==2.0.0
pyRFC3339==1.1
Pyrogram==2.0.106
pyrsistent==0.18.1
pyserial==3.5
PySocks==1.7.1
pytest==7.2.1
python-apt==2.4.0+ubuntu4
python-dateutil==2.8.1
python-debian==0.1.43+ubuntu1.1
python-dotenv==1.0.1
python-Levenshtein==0.20.9
python-magic==0.4.24
python-markdown-math==0.8
python-qbittorrent==0.4.3
python-slugify==6.1.2
pytz==2022.1
pytz-deprecation-shim==0.1.0.post0
pyusb==1.2.1
PyWavelets==1.3.0
pyxdg==0.27
PyYAML==5.4.1
qmk==1.1.2
qrcode==7.4.2
rapidfuzz==2.13.7
redis==4.5.5
referencing==0.31.0
regex==2023.3.23
reportlab==3.6.8
requests==2.28.1
requests-file==2.1.0
requests-toolbelt==0.9.1
retrying==1.3.3
rfc3986==1.5.0
rich==13.5.2
rpds-py==0.13.1
rsa==4.9
ruamel.yaml==0.17.21
ruamel.yaml.clib==0.2.7
runlike==1.4.9
scipy==1.8.1
SCons==4.0.1
SecretStorage==3.3.1
sgmllib3k==1.0.0
sgt-launcher==0.2.7
shellescape==3.8.1
six==1.16.0
sniffio==1.2.0
socksio==1.0.0
soupsieve==2.3.2.post1
spinners==0.0.24
SQLAlchemy==2.0.26
ssh-import-id==5.11
starlette==0.27.0
systemd-python==234
tenacity==8.5.0
termcolor==2.3.0
text-unidecode==1.3
texttable==1.6.4
textual==0.29.0
TgCrypto==1.2.5
tiktoken==0.4.0
tiktoken-async==0.3.2
tinycss2==1.2.1
tinydb==4.8.0
tldextract==5.1.2
tomli==2.0.1
tomlkit==0.10.2
tornado==6.1
tqdm==4.66.2
types-python-dateutil==2.9.0.20240316
typing-inspect==0.9.0
typing_extensions==4.9.0
tzdata==2022.1
tzlocal==4.2
ubuntu-drivers-common==0.0.0
ubuntu-pro-client==8001
uc-micro-py==1.0.2
ufw==0.36.1
ujson==5.4.0
unattended-upgrades==0.1
unidiff==0.5.5
urllib3==1.26.5
userpath==1.8.0
uvicorn==0.20.0
uvloop==0.17.0
virtualenv==20.17.1
wadllib==1.3.6
watchdog==2.1.9
watchfiles==0.18.0
watchgod==0.8.2
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.2.3
websockets==10.4
wordcloud==1.8.2.2
xcffib==0.11.1
xdg==5
xkit==0.0.0
yarg==0.1.9
yarl==1.9.4
zipp==1.0.0

如何复现

更新订阅

期望行为

无报错

实际行为

  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/__init__.py", line 61, in start
    await asyncio.gather(*[tr.add_job(rss) for rss in rss_list if not rss.stop])
  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/my_trigger.py", line 37, in add_job
    await check_update(rss)
  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/my_trigger.py", line 21, in check_update
    await rss_parsing.start(rss)
  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/rss_parsing.py", line 115, in start
    await pr.start(rss_name=rss.name, new_rss=new_rss)
  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/parsing/parsing_rss.py", line 206, in start
    self.state, _ = await _run_handlers(self.before_handler, self.rss, self.state)
  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/parsing/parsing_rss.py", line 158, in _run_handlers
    state.update(await handler.func(**handler_kwargs))
  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/parsing/__init__.py", line 48, in handle_check_update
    summary = get_summary(item)
  File "/home/aaa/MyBot/src/plugins/ELF_RSS2/parsing/utils.py", line 17, in get_summary
    item["content"][0]["value"] if item.get("content") else item["summary"]
KeyError: 'summary'
Quan666 commented 1 month ago

你RSS源的问题

Zxis233 commented 1 month ago

你RSS源的问题

是否会影响消息推送?

Quan666 commented 1 month ago

你RSS源的问题

是否会影响消息推送?

肯定会影响