morss: small fixes

Includes dropping off ftp support
master
pictuga 2020-03-21 23:30:18 +01:00
parent bd4b7b5bb2
commit 37b4e144a9
1 changed files with 4 additions and 5 deletions

View File

@ -45,7 +45,7 @@ THREADS = 10 # number of threads (1 for single-threaded)
DEBUG = False DEBUG = False
PORT = 8080 PORT = 8080
PROTOCOL = ['http', 'https', 'ftp'] PROTOCOL = ['http', 'https']
def filterOptions(options): def filterOptions(options):
@ -328,7 +328,6 @@ def FeedFetch(url, options):
if options.items: if options.items:
# using custom rules # using custom rules
rss = feeds.FeedHTML(xml) rss = feeds.FeedHTML(xml)
feed.rule
rss.rules['items'] = options.items rss.rules['items'] = options.items
@ -568,12 +567,12 @@ def middleware(func):
def app_builder(app): def app_builder(app):
# This is called when doing app = cgi_wrapper(app) # This is called when doing app = cgi_wrapper(app)
def app_wrapp(environ, start_response): def app_wrap(environ, start_response):
# This is called when a http request is being processed # This is called when a http request is being processed
return func(environ, start_response, app) return func(environ, start_response, app)
return app_wrapp return app_wrap
return app_builder return app_builder