This commit is contained in:
2021-01-19 19:33:53 +08:00
parent 966aee5659
commit eafe73ef95

View File

@@ -49,11 +49,11 @@ def getTextContentForRSSInList(rssEntry: RSSEntry, s: settings) -> str:
f"""<a href="{rssEntry.url}">{rssEntry.title}</a>""")
temp = ''
if rssEntry.lasterrortime >= rssEntry.lastupdatetime and rssEntry.errorcount > 0:
temp = f'更新间隔:{s._retryTTL[rssEntry.errorcount]}'
temp = f'更新间隔:{s._retryTTL[rssEntry.errorcount]}'
else:
ttl = 0 if rssEntry.interval is None else rssEntry.interval
ttl = max(min(ttl, s._maxTTL), s._minTTL)
temp = f'更新间隔:{ttl}'
temp = f'更新间隔:{ttl}'
text.addtotext(temp)
temp = '上次更新时间:未知' if rssEntry.lastupdatetime is None or rssEntry.lastupdatetime < 0 else f'上次更新时间:{timeToStr(rssEntry.lastupdatetime)}'
text.addtotext(temp)