MCPcopy Create free account

hub / github.com/McCloudS/subgen / functions

Functions221 in github.com/McCloudS/subgen

Functionq
()
tests/test_queue.py:17
Functionreceive_emby_webhook
( user_agent: Union[str, None] = Header(None), data: Union[str, None] = Form(None), )
subgen.py:680
Functionreceive_jellyfin_webhook
( user_agent: str = Header(None), NotificationType: str = Body(None), file: str = Body
subgen.py:649
Functionreceive_plex_webhook
( user_agent: Union[str] = Header(None), payload: Union[str] = Form(), )
subgen.py:572
Functionreceive_tautulli_webhook
( source: Union[str, None] = Header(None), event: str = Body(None), file: str = Body(N
subgen.py:553
Functionreset_queue
Give each test a clean queue so tasks from one test don't affect another.
tests/test_integration.py:23
Functionstatus
()
subgen.py:549
Methodtest_active_while_processing
(self, q)
tests/test_queue.py:85
Methodtest_active_while_queued
(self, q)
tests/test_queue.py:81
Methodtest_added_event_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:57
Methodtest_added_not_queued_when_procaddedmedia_false
(self, client, monkeypatch)
tests/test_endpoints.py:92
Methodtest_all_members_except_none_have_iso_639_1
(self)
tests/test_language_code.py:111
Methodtest_asr_before_transcribe
(self, q)
tests/test_queue.py:50
Methodtest_bool_false_input
(self)
tests/test_helpers.py:23
Methodtest_bool_true_input
(self)
tests/test_helpers.py:20
Methodtest_case_insensitive_iso
(self)
tests/test_language_code.py:33
Methodtest_case_insensitive_name
(self)
tests/test_language_code.py:37
Methodtest_concurrent_puts_only_one_wins
(self, q)
tests/test_queue.py:114
Methodtest_container_path_is_remapped
Container path /tv → host path /Volumes/TV must be applied before queuing.
tests/test_integration.py:57
Methodtest_convert_func_applied
(self, monkeypatch)
tests/test_helpers.py:82
Methodtest_convert_func_not_applied_to_none_default
(self, monkeypatch)
tests/test_helpers.py:87
Methodtest_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
Methodtest_detect_language_before_transcribe
(self, q)
tests/test_queue.py:44
Methodtest_deterministic
(self)
tests/test_helpers.py:28
Methodtest_different_content_different_hash
(self)
tests/test_helpers.py:34
Methodtest_different_language_different_hash
(self)
tests/test_helpers.py:47
Methodtest_different_paths_both_accepted
(self, q)
tests/test_queue.py:33
Methodtest_different_task_different_hash
(self)
tests/test_helpers.py:40
Methodtest_disabled_returns_original
(self, monkeypatch)
tests/test_helpers.py:95
Methodtest_duplicate_while_processing_returns_false
(self, q)
tests/test_queue.py:37
Methodtest_duplicate_while_queued_returns_false
(self, q)
tests/test_queue.py:29
Methodtest_emby_library_new_adds_to_queue
(self, client, monkeypatch, reset_queue)
tests/test_integration.py:80
Methodtest_empty_file_returns_error
(self, client)
tests/test_endpoints.py:239
Methodtest_empty_string
(self)
tests/test_language_code.py:27
Methodtest_enabled_no_match_returns_original
(self, monkeypatch)
tests/test_helpers.py:107
Methodtest_enabled_replaces_prefix
(self, monkeypatch)
tests/test_helpers.py:101
Methodtest_english_name
(self)
tests/test_language_code.py:18
Methodtest_english_name_returns_language_code
(self)
tests/test_language_code.py:51
Methodtest_extraction_failure_returns_none
If extraction returns None (ffmpeg error), propagate None.
tests/test_audio_tracks.py:70
Methodtest_falls_back_to_old_name
(self, monkeypatch)
tests/test_helpers.py:70
Methodtest_falsy_values
(self, value)
tests/test_helpers.py:17
Methodtest_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
Methodtest_french
(self)
tests/test_language_code.py:41
Methodtest_full_priority_order
(self, q)
tests/test_queue.py:56
Methodtest_get_processing_tasks_returns_list
(self, q)
tests/test_queue.py:107
Methodtest_get_queued_tasks_returns_list
(self, q)
tests/test_queue.py:102
Methodtest_get_returns_redirect_message
(self, client, path)
tests/test_endpoints.py:45
Methodtest_has_audio_extension
(self, fname)
tests/test_helpers.py:124
Methodtest_has_no_audio_extension
(self, fname)
tests/test_helpers.py:128
Methodtest_has_no_video_extension
(self, fname)
tests/test_helpers.py:120
Methodtest_has_video_extension
(self, fname)
tests/test_helpers.py:116
Methodtest_invalid
(self)
tests/test_language_code.py:105
Methodtest_invalid_code
(self)
tests/test_language_code.py:30
Methodtest_is_audio_file_extension_case_insensitive
(self)
tests/test_helpers.py:131
Methodtest_iso_639_1
(self)
tests/test_language_code.py:12
Methodtest_iso_639_2
(self)
tests/test_language_code.py:15
Methodtest_item_added_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:168
Methodtest_language_match_selects_correct_track
Matching language selects the right track.
tests/test_audio_tracks.py:48
Methodtest_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
Methodtest_library_new_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:113
Methodtest_library_new_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:212
Methodtest_mark_done_allows_requeue
(self, q)
tests/test_queue.py:66
Methodtest_media_play_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:127
Methodtest_native_name
(self)
tests/test_language_code.py:21
Methodtest_native_name_returns_language_code
(self)
tests/test_language_code.py:56
Methodtest_new_item_returns_true
(self, q)
tests/test_queue.py:26
Methodtest_new_name_takes_precedence
(self, monkeypatch)
tests/test_helpers.py:64
Methodtest_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
Methodtest_no_match_returns_none_language_code
(self)
tests/test_language_code.py:61
Methodtest_no_skip_internal_subtitle_no_match
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:140
Methodtest_no_skip_lrc_when_lrc_for_audio_disabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:63
Methodtest_no_skip_unknown_language_when_disabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:89
Methodtest_no_skip_when_lrc_missing
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:51
Methodtest_no_skip_when_preferred_track_found
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:177
Methodtest_no_skip_when_subtitle_missing
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:114
Methodtest_no_task_no_language
(self)
tests/test_helpers.py:58
Methodtest_none_equals_python_none
(self)
tests/test_language_code.py:93
Methodtest_none_input
(self)
tests/test_language_code.py:24
Methodtest_none_language_is_falsy
(self)
tests/test_language_code.py:90
Methodtest_not_active_after_done
(self, q)
tests/test_queue.py:93
Methodtest_not_active_when_absent
(self, q)
tests/test_queue.py:90
Methodtest_notification_test_returns_success_without_queuing
(self, client)
tests/test_endpoints.py:223
Methodtest_playback_start_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:182
Methodtest_played_event_queues_file
(self, client, monkeypatch)
tests/test_endpoints.py:70
Methodtest_plex_route_registered_once
Regression: duplicate @app.post('/plex') silently dropped the first handler.
tests/test_endpoints.py:152
Methodtest_post_is_still_called
Verify the actual POST refresh call is still made after removing the dead GET.
tests/test_bug_fixes.py:102
Methodtest_returns_16_char_string
(self)
tests/test_helpers.py:54
Methodtest_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
Methodtest_returns_version_key
(self, client)
tests/test_endpoints.py:30
Methodtest_roundtrip_iso_639_1
(self)
tests/test_language_code.py:77
Methodtest_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
Methodtest_single_track_returns_none
Single-track file: no extraction needed, return None.
tests/test_audio_tracks.py:25
Methodtest_skip_audio_in_skip_list
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:154
Methodtest_skip_internal_subtitle_match
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:128
Methodtest_skip_unknown_language_when_enabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:78
Methodtest_skip_when_lrc_exists
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:42
Methodtest_skip_when_no_preferred_track_and_limit_enabled
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:165
Methodtest_skip_when_subtitle_exists
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:102
Methodtest_skip_when_subtitle_lang_in_skip_list
(self, monkeypatch, tmp_path)
tests/test_skip_logic.py:191
Methodtest_still_returns_languages_on_success
Happy path: still returns languages when av.open works.
tests/test_bug_fixes.py:39
← previousnext →101–200 of 221, ranked by callers