McCloudS
298dcd74a9
Standardize environment variable naming with backwards compatibility ( #229 )
...
- Add get_env_with_fallback() helper function for seamless migration
- Implement consistent UPPERCASE_WITH_UNDERSCORES naming convention
- Group variables by logical categories (PLEX_*, JELLYFIN_*, PROCESS_*, SKIP_*, etc.)
- Maintain full backwards compatibility with legacy variable names
- Add comprehensive documentation explaining new naming convention
New standardized names with backwards compatibility:
- PLEX_TOKEN (was PLEXTOKEN)
- PLEX_SERVER (was PLEXSERVER)
- JELLYFIN_TOKEN (was JELLYFINTOKEN)
- JELLYFIN_SERVER (was JELLYFINSERVER)
- PROCESS_ADDED_MEDIA (was PROCADDEDMEDIA)
- PROCESS_MEDIA_ON_PLAY (was PROCMEDIAONPLAY)
- SUBTITLE_LANGUAGE_NAME (was NAMESUBLANG)
- WEBHOOK_PORT (was WEBHOOKPORT)
- SKIP_IF_EXTERNAL_SUBTITLES_EXIST (was SKIPIFEXTERNALSUB)
- SKIP_IF_TARGET_SUBTITLES_EXIST (was SKIP_IF_TO_TRANSCRIBE_SUB_ALREADY_EXIST)
- SKIP_IF_INTERNAL_SUBTITLES_LANGUAGE (was SKIPIFINTERNALSUBLANG)
- SKIP_SUBTITLE_LANGUAGES (was SKIP_LANG_CODES)
- SKIP_IF_AUDIO_LANGUAGES (was SKIP_IF_AUDIO_TRACK_IS)
- SKIP_ONLY_SUBGEN_SUBTITLES (was ONLY_SKIP_IF_SUBGEN_SUBTITLE)
- SKIP_IF_NO_LANGUAGE_BUT_SUBTITLES_EXIST (was SKIP_IF_LANGUAGE_IS_NOT_SET_BUT_SUBTITLES_EXIST)
Migration is seamless - both old and new names work simultaneously.
New names take precedence when both are set.
Tested: All mappings, type conversions, precedence logic, and syntax validation.
2025-08-27 00:48:04 +00:00
McCloudS
405476ca87
Fix subtitle checking logic to properly separate internal vs external subtitle detection ( #228 )
...
- Line 1139: Change has_subtitle_language() to has_subtitle_language_in_file() for SKIPIFINTERNALSUBLANG check
- Line 1148: Change has_subtitle_language() to has_subtitle_of_language_in_folder() for SKIPIFEXTERNALSUB check
This fixes the logic conflict where:
- SKIPIFINTERNALSUBLANG should only check for internal/embedded subtitles
- SKIPIFEXTERNALSUB should only check for external subtitle files
Previously both were using has_subtitle_language() which checks both internal AND external,
causing incorrect skip behavior when users wanted to generate subtitles despite having
internal subtitles but skip when external subtitle files exist.
2025-08-22 03:21:11 +00:00
McCloudS
94cc7c5005
fix naming subtitles again
2025-08-12 12:03:59 +00:00
McCloudS
41b843965d
Fix subtitle naming for distil 3.5
...
Original function split on '.' which broken naming with models with decimals.
2025-08-12 11:58:30 +00:00
McCloudS
04026c3b64
Revert Logging Change
2025-05-14 15:59:22 +00:00
McCloudS
d9febbe991
Fix Uvicorn logger overwriting Subgen logging
2025-05-14 14:47:44 +00:00
McCloudS
2b0f0fc478
Fix calling an empty environment variable
2025-05-11 01:31:49 +00:00
McCloudS
89e0556930
Add option to remove subgen and model name from subtitle filename
2025-05-02 15:32:01 +00:00
McCloudS
3ed6da7f4c
add video_file for detect-language if Bazarr provides it.
2025-03-05 02:36:44 +00:00
McCloudS
d183ad574a
Fix wrong languagecode being used
2025-03-02 19:41:17 +00:00
McCloudS
cc2868915f
Add queue debug logging.
2025-03-02 02:26:02 +00:00
McCloudS
3cba9352a8
reorganize detect-language logic
2025-03-02 00:53:54 +00:00
McCloudS
6a0ed4b107
Update subgen.py
2025-02-20 13:00:16 -07:00
McCloudS
cfc7890137
Fixed misnamed DETECT_LANGUAGE_OFFSET
2025-02-20 12:53:43 -07:00
McCloudS
66858b03c6
Fix detect_language offset
2025-02-20 17:54:43 +00:00
McCloudS
645e0c98cb
Update subgen.py
2025-02-20 02:50:38 +00:00
McCloudS
7a09b0ad60
don't gc.collect in windows
2025-02-20 01:30:20 +00:00
McCloudS
bcb6349c3e
missing imports
2025-02-19 22:00:58 +00:00
McCloudS
d23c36def8
rewrite subtitle search in folders
2025-02-19 20:23:59 +00:00
McCloudS
08ff73f450
Fix for SKIP_IF_TO_TRANSCRIBE_SUB_ALREADY_EXIST
2025-02-19 17:45:57 +00:00
McCloudS
8adb8ec095
Fixed undefined task
2025-02-17 14:38:16 +00:00
McCloudS
3a1c26294c
Fix translation from foreign languages.
2025-02-14 14:59:20 +00:00
McCloudS
9abe77f0b1
idle CPU usage fix?
2025-02-09 15:51:30 +00:00
McCloudS
d6c9904d03
Update subgen.py
2025-02-08 17:57:03 +00:00
McCloudS
35f9329d4e
Update subgen.py
2025-02-08 17:50:11 +00:00
McCloudS
8d163b1880
Update subgen.py
2025-02-08 17:43:44 +00:00
McCloudS
aaaa449f1b
Add exception to catch empty queue
2025-02-08 17:37:27 +00:00
McCloudS
0796a64123
Trying to find rogue CPU cycles
2025-02-08 17:32:23 +00:00
McCloudS
023bb0c4ff
Update subgen.py
2025-02-08 15:22:05 +00:00
McCloudS
64028b0977
Remove printing the current file we're working on and remove random thread spawns?
2025-02-08 15:17:17 +00:00
McCloudS
ecdc093745
plex_queue fix?
2025-02-07 22:37:42 +00:00
McCloudS
7dc8abb8df
Add plex_queue_season
2025-02-07 22:31:30 +00:00
McCloudS
3eb648e904
init typo
2025-02-06 18:43:26 +00:00
McCloudS
6eaa5e746f
Try to fix file updates in progress
2025-02-06 18:39:11 +00:00
McCloudS
0f69f48f9f
Add torch
2025-02-06 18:31:17 +00:00
McCloudS
63c3ed34bb
somehow deleted async...
2025-02-06 18:28:04 +00:00
McCloudS
6a14159bcd
Update subgen.py
2025-02-06 18:21:09 +00:00
McCloudS
476320878f
partial reversion and attempt to clear cuda vram
2025-02-06 18:12:07 +00:00
McCloudS
5e60a4a6c2
Unload model after 60 seconds inactivity. Attempt to clear more cuda vram.
2025-02-06 18:07:10 +00:00
McCloudS
97bc516ec9
Update subgen.py
2025-02-06 17:46:22 +00:00
McCloudS
1db059ea63
Update subgen.py
2025-02-06 10:44:05 -07:00
McCloudS
061937c2ad
version test
2025-02-06 10:41:44 -07:00
McCloudS
05fc33757e
Update calver.yml
2025-02-06 17:40:22 +00:00
McCloudS
58bc3fe961
Rewrite should_skip_file
2025-02-06 10:38:06 -07:00
McCloudS
46427c4fe0
Remove unused function
2025-02-06 10:18:21 -07:00
McCloudS
5531495e47
Print out which file we're actively working on and updated Queue functions
2025-02-04 12:34:51 -07:00
McCloudS
9bc8b39085
fix for lrc files
2025-02-03 11:43:10 -07:00
McCloudS
574347f5ea
renamed function and cleaned up readability
2025-02-03 10:49:34 -07:00
McCloudS
4401c72732
Double log line removed
2025-02-02 20:22:27 -07:00
McCloudS
a14ccc197b
Clean up some logging
...
More to come...
2025-02-02 20:21:28 -07:00