add tadoku.org

This commit is contained in:
Hiller Liao
2023-07-09 20:46:09 +08:00
parent 73d5bdbc18
commit 5aaba55dbd
3 changed files with 45 additions and 9 deletions

View File

@@ -308,16 +308,14 @@ def nhk_newseasy(category='', keywords=''):
from rsshub.spiders.nhk.newseasy import ctx
return render_template('main/atom.xml', **filter_content(ctx(category)))
@bp.route('/tadoku/books/<string:category>')
@cache.cached(timeout=3600)
def tadoku_books(category=''):
from rsshub.spiders.tadoku.books import ctx
return render_template('main/atom.xml', **filter_content(ctx(category)))
@bp.route('/filter/')
def rss_filter():
from rsshub.spiders.rssfilter.filter import ctx
feed_url = request.args.get("feed")
return render_template('main/atom.xml', **filter_content(ctx(feed_url)))
'''
@bp.route('/test')
@bp.route('/test/测试')
def test():
import sys
# return sys.getdefaultencoding()
return sys.stdout.encoding
'''
return render_template('main/atom.xml', **filter_content(ctx(feed_url)))