MCPcopy Create free account
hub / github.com/McCloudS/subgen / create_subtitle

Method create_subtitle

subgen.py:2498–2506  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

2496 while True:
2497 if os.path.exists(os.path.join(check, SKIP_MARKER)):
2498 return True
2499 parent = os.path.dirname(check)
2500 if parent == check:
2501 return False
2502 check = parent
2503
2504
2505class NewFileHandler(FileSystemEventHandler):
2506 """Watchdog handler that queues newly created or modified media files."""
2507
2508 def create_subtitle(self, event):
2509 if not event.is_directory:

Callers 1

handle_eventMethod · 0.95

Calls 4

_is_in_skipped_dirFunction · 0.85
has_audioFunction · 0.85
path_mappingFunction · 0.85
gen_subtitles_queueFunction · 0.85

Tested by

no test coverage detected