From 5c2903c2c04b840f94ff60bf22028a7f37d4db55 Mon Sep 17 00:00:00 2001 From: Maff Date: Wed, 1 May 2019 11:47:41 +0000 Subject: [PATCH] Update 'trashtalker.py' --- trashtalker.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/trashtalker.py b/trashtalker.py index f5a7f1b..c8a57c1 100644 --- a/trashtalker.py +++ b/trashtalker.py @@ -27,11 +27,9 @@ from random import shuffle # Configuration LOG_LEVEL=0 -# You can have multiple copies of this script serving different playlists by simply duplicating it -# ensuring you change the sourcepath and sipport accordingly. -#TODO: make this configurable via a standard config file. +#TT_MEDIA_SOURCE and TT_LISTEN_PORT can be configured via env. variables sourcepath=getenv('TT_MEDIA_SOURCE', '/opt/media/') -sipport=getenv('TT_LISTEN_PORT', 5062) +sipport=int(getenv('TT_LISTEN_PORT', 5062)) # End configuration # Application scaffolding