add display_entry_link config

This commit is contained in:
2021-10-28 23:03:41 +08:00
parent 159f024cbf
commit c9db305b95
3 changed files with 33 additions and 4 deletions

View File

@@ -23,10 +23,11 @@ class RSSConfig:
self.show_Content_title = True
self.show_content = True
self.send_media = True
self.display_entry_link = False
if d is not None:
for k in d.keys():
if hasattr(self, k):
setattr(self, k, d[k])
def toJson(self):
return dumps({'disable_web_page_preview': self.disable_web_page_preview, 'show_RSS_title': self.show_RSS_title, 'show_Content_title': self.show_Content_title, 'show_content': self.show_content, 'send_media': self.send_media}, ensure_ascii=False)
return dumps({'disable_web_page_preview': self.disable_web_page_preview, 'show_RSS_title': self.show_RSS_title, 'show_Content_title': self.show_Content_title, 'show_content': self.show_content, 'send_media': self.send_media, 'display_entry_link': self.display_entry_link}, ensure_ascii=False)