Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/McCloudS/subgen
/ functions
Functions
221 in github.com/McCloudS/subgen
⨍
Functions
221
◇
Types & classes
45
↳
Endpoints
12
Function
q
()
tests/test_queue.py:17
Function
receive_emby_webhook
( user_agent: Union[str, None] = Header(None), data: Union[str, None] = Form(None), )
subgen.py:680
Function
receive_jellyfin_webhook
( user_agent: str = Header(None), NotificationType: str = Body(None), file: str = Body
subgen.py:649
Function
receive_plex_webhook
( user_agent: Union[str] = Header(None), payload: Union[str] = Form(), )
subgen.py:572
Function
receive_tautulli_webhook
( source: Union[str, None] = Header(None), event: str = Body(None), file: str = Body(N
subgen.py:553
Function
reset_queue
Give each test a clean queue so tasks from one test don't affect another.
tests/test_integration.py:23
Function
status
()
subgen.py:549
Method
test_active_while_processing
(self, q)
tests/test_queue.py:85
Method
test_active_while_queued
(self, q)
tests/test_queue.py:81
Method
test_added_event_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:57
Method
test_added_not_queued_when_procaddedmedia_false
(self, client, monkeypatch)
tests/test_endpoints.py:92
Method
test_all_members_except_none_have_iso_639_1
(self)
tests/test_language_code.py:111
Method
test_asr_before_transcribe
(self, q)
tests/test_queue.py:50
Method
test_bool_false_input
(self)
tests/test_helpers.py:23
Method
test_bool_true_input
(self)
tests/test_helpers.py:20
Method
test_case_insensitive_iso
(self)
tests/test_language_code.py:33
Method
test_case_insensitive_name
(self)
tests/test_language_code.py:37
Method
test_concurrent_puts_only_one_wins
(self, q)
tests/test_queue.py:114
Method
test_container_path_is_remapped
Container path /tv → host path /Volumes/TV must be applied before queuing.
tests/test_integration.py:57
Method
test_convert_func_applied
(self, monkeypatch)
tests/test_helpers.py:82
Method
test_convert_func_not_applied_to_none_default
(self, monkeypatch)
tests/test_helpers.py:87
Method
test_dead_get_is_not_called
The intermediate GET to /Users/{admin}/Items/{id}/Refresh is dead code — its response is immediately overwritten by the POST.
tests/test_bug_fixes.py:65
Method
test_detect_language_before_transcribe
(self, q)
tests/test_queue.py:44
Method
test_deterministic
(self)
tests/test_helpers.py:28
Method
test_different_content_different_hash
(self)
tests/test_helpers.py:34
Method
test_different_language_different_hash
(self)
tests/test_helpers.py:47
Method
test_different_paths_both_accepted
(self, q)
tests/test_queue.py:33
Method
test_different_task_different_hash
(self)
tests/test_helpers.py:40
Method
test_disabled_returns_original
(self, monkeypatch)
tests/test_helpers.py:95
Method
test_duplicate_while_processing_returns_false
(self, q)
tests/test_queue.py:37
Method
test_duplicate_while_queued_returns_false
(self, q)
tests/test_queue.py:29
Method
test_emby_library_new_adds_to_queue
(self, client, monkeypatch, reset_queue)
tests/test_integration.py:80
Method
test_empty_file_returns_error
(self, client)
tests/test_endpoints.py:239
Method
test_empty_string
(self)
tests/test_language_code.py:27
Method
test_enabled_no_match_returns_original
(self, monkeypatch)
tests/test_helpers.py:107
Method
test_enabled_replaces_prefix
(self, monkeypatch)
tests/test_helpers.py:101
Method
test_english_name
(self)
tests/test_language_code.py:18
Method
test_english_name_returns_language_code
(self)
tests/test_language_code.py:51
Method
test_extraction_failure_returns_none
If extraction returns None (ffmpeg error), propagate None.
tests/test_audio_tracks.py:70
Method
test_falls_back_to_old_name
(self, monkeypatch)
tests/test_helpers.py:70
Method
test_falsy_values
(self, value)
tests/test_helpers.py:17
Method
test_first_path_file_processed_when_second_path_is_directory
Scoping bug: `path` after the outer `for path in transcribe_folders` loop holds only the LAST value. When the first entry is a direct
tests/test_bug_fixes.py:157
Method
test_french
(self)
tests/test_language_code.py:41
Method
test_full_priority_order
(self, q)
tests/test_queue.py:56
Method
test_get_processing_tasks_returns_list
(self, q)
tests/test_queue.py:107
Method
test_get_queued_tasks_returns_list
(self, q)
tests/test_queue.py:102
Method
test_get_returns_redirect_message
(self, client, path)
tests/test_endpoints.py:45
Method
test_has_audio_extension
(self, fname)
tests/test_helpers.py:124
Method
test_has_no_audio_extension
(self, fname)
tests/test_helpers.py:128
Method
test_has_no_video_extension
(self, fname)
tests/test_helpers.py:120
Method
test_has_video_extension
(self, fname)
tests/test_helpers.py:116
Method
test_invalid
(self)
tests/test_language_code.py:105
Method
test_invalid_code
(self)
tests/test_language_code.py:30
Method
test_is_audio_file_extension_case_insensitive
(self)
tests/test_helpers.py:131
Method
test_iso_639_1
(self)
tests/test_language_code.py:12
Method
test_iso_639_2
(self)
tests/test_language_code.py:15
Method
test_item_added_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:168
Method
test_language_match_selects_correct_track
Matching language selects the right track.
tests/test_audio_tracks.py:48
Method
test_language_none_uses_first_track_no_error
Regression: language=None must NOT raise UnboundLocalError. Should fall back to the first audio track.
tests/test_audio_tracks.py:33
Method
test_library_new_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:113
Method
test_library_new_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:212
Method
test_mark_done_allows_requeue
(self, q)
tests/test_queue.py:66
Method
test_media_play_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:127
Method
test_native_name
(self)
tests/test_language_code.py:21
Method
test_native_name_returns_language_code
(self)
tests/test_language_code.py:56
Method
test_new_item_returns_true
(self, q)
tests/test_queue.py:26
Method
test_new_name_takes_precedence
(self, monkeypatch)
tests/test_helpers.py:64
Method
test_no_language_match_falls_back_to_first_track
When no track matches the requested language, fall back to first track.
tests/test_audio_tracks.py:59
Method
test_no_match_returns_none_language_code
(self)
tests/test_language_code.py:61
Method
test_no_skip_internal_subtitle_no_match
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:140
Method
test_no_skip_lrc_when_lrc_for_audio_disabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:63
Method
test_no_skip_unknown_language_when_disabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:89
Method
test_no_skip_when_lrc_missing
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:51
Method
test_no_skip_when_preferred_track_found
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:177
Method
test_no_skip_when_subtitle_missing
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:114
Method
test_no_task_no_language
(self)
tests/test_helpers.py:58
Method
test_none_equals_python_none
(self)
tests/test_language_code.py:93
Method
test_none_input
(self)
tests/test_language_code.py:24
Method
test_none_language_is_falsy
(self)
tests/test_language_code.py:90
Method
test_not_active_after_done
(self, q)
tests/test_queue.py:93
Method
test_not_active_when_absent
(self, q)
tests/test_queue.py:90
Method
test_notification_test_returns_success_without_queuing
(self, client)
tests/test_endpoints.py:223
Method
test_playback_start_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:182
Method
test_played_event_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:70
Method
test_plex_route_registered_once
Regression: duplicate @app.post('/plex') silently dropped the first handler.
tests/test_endpoints.py:152
Method
test_post_is_still_called
Verify the actual POST refresh call is still made after removing the dead GET.
tests/test_bug_fixes.py:102
Method
test_returns_16_char_string
(self)
tests/test_helpers.py:54
Method
test_returns_empty_list_on_av_error
If av.open() raises (corrupt file, permissions, wrong format), get_subtitle_languages() must return [] instead of propagating.
tests/test_bug_fixes.py:26
Method
test_returns_version_key
(self, client)
tests/test_endpoints.py:30
Method
test_roundtrip_iso_639_1
(self)
tests/test_language_code.py:77
Method
test_single_file_path_is_processed
When transcribe_folders contains a single file path (not a directory), it should be processed. The fix is to check os.path.isfile(pat
tests/test_bug_fixes.py:131
Method
test_single_track_returns_none
Single-track file: no extraction needed, return None.
tests/test_audio_tracks.py:25
Method
test_skip_audio_in_skip_list
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:154
Method
test_skip_internal_subtitle_match
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:128
Method
test_skip_unknown_language_when_enabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:78
Method
test_skip_when_lrc_exists
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:42
Method
test_skip_when_no_preferred_track_and_limit_enabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:165
Method
test_skip_when_subtitle_exists
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:102
Method
test_skip_when_subtitle_lang_in_skip_list
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:191
Method
test_still_returns_languages_on_success
Happy path: still returns languages when av.open works.
tests/test_bug_fixes.py:39
← previous
next →
101–200 of 221, ranked by callers