Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

翻译失败问题 #14

Open
MadQHawk opened this issue Jul 16, 2024 · 1 comment
Open

翻译失败问题 #14

MadQHawk opened this issue Jul 16, 2024 · 1 comment

Comments

@MadQHawk
Copy link

最近出现来自rsshub 的源翻译在rss文件夹不在生成xml文件,是不支持了吗image

@rcy1314
Copy link
Owner

rcy1314 commented Jul 16, 2024

@MadQHawk 本身代码是正常运行的,单纯针对图中两个url我在本地也测试过,失败的原因为进行解析时无法获取URL中的title属性,如图
测试1
但地址1-BBC的文件结构是正确的,所以它是正常生成的:
测试2
猜测原因可能包括feedparser 库解析问题及AP-news的rss地址本身结构问题,你可以尝试更换为其它RSS地址,或者修改my-mtranslate.py 文件中的代码在45行下方找到entry.title变量,改为当title不存在时忽略它或者改为改进其它异常处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants