- commit
- 98487b874964f2123b09979a9b5cfa0a40ed4f87
- parent
- 2f6a3ccfac37290a969cd2b6814d4be0bb3ff80e
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-12-21 09:34
rm host/port from config
Diffstat
| M | example.cfg | 4 | ---- |
| M | plutopluto/__init__.py | 3 | ++- |
2 files changed, 2 insertions, 5 deletions
diff --git a/example.cfg b/example.cfg
@@ -1,9 +1,5 @@ 1 1 # See http://flask.pocoo.org/docs/0.10/config/#builtin-configuration-values 2 23 -1 # Host and port where plutopluto runs, e.g. localhost:80004 -1 # HOST = 'localhost'5 -1 # PORT = 80006 -17 3 # List of feed URLs. 8 4 # A URL may contain a {page} placeholder. It is replaced with increasing 9 5 # numbers starting with 0.
diff --git a/plutopluto/__init__.py b/plutopluto/__init__.py
@@ -166,6 +166,7 @@ def main(): 166 166 parser.add_argument('-c', '--config', metavar='FILE') 167 167 parser.add_argument('urls', metavar='URL', nargs='*', 168 168 help='full feed url, optionally with a {page} placeholder') -1 169 parser.add_argument('--port', type=int, default=8000) 169 170 args = parser.parse_args() 170 171 171 172 config_name = '.plutopluto.cfg' @@ -186,7 +187,7 @@ def main(): 186 187 parser.print_usage() 187 188 sys.exit(1) 188 189189 -1 app.run(app.config.get('HOST'), app.config.get('PORT'))-1 190 app.run('localhost', args.port) 190 191 191 192 192 193 if __name__ == '__main__':