Spaces:
Runtime error
Runtime error
Update subgen.py
Browse files
subgen.py
CHANGED
|
@@ -127,7 +127,7 @@ procmediaonplay = get_env_with_fallback('PROCESS_MEDIA_ON_PLAY', 'PROCMEDIAONPLA
|
|
| 127 |
namesublang = get_env_with_fallback('SUBTITLE_LANGUAGE_NAME', 'NAMESUBLANG', '')
|
| 128 |
|
| 129 |
# System Configuration - with backwards compatibility
|
| 130 |
-
webhookport = get_env_with_fallback('WEBHOOK_PORT', 'WEBHOOKPORT',
|
| 131 |
word_level_highlight = convert_to_bool(os.getenv('WORD_LEVEL_HIGHLIGHT', False))
|
| 132 |
debug = convert_to_bool(os.getenv('DEBUG', True))
|
| 133 |
use_path_mapping = convert_to_bool(os.getenv('USE_PATH_MAPPING', False))
|
|
|
|
| 127 |
namesublang = get_env_with_fallback('SUBTITLE_LANGUAGE_NAME', 'NAMESUBLANG', '')
|
| 128 |
|
| 129 |
# System Configuration - with backwards compatibility
|
| 130 |
+
webhookport = get_env_with_fallback('WEBHOOK_PORT', 'WEBHOOKPORT', 80, int)
|
| 131 |
word_level_highlight = convert_to_bool(os.getenv('WORD_LEVEL_HIGHLIGHT', False))
|
| 132 |
debug = convert_to_bool(os.getenv('DEBUG', True))
|
| 133 |
use_path_mapping = convert_to_bool(os.getenv('USE_PATH_MAPPING', False))
|