lyrics-transcriber 0.43.0__tar.gz → 0.43.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/PKG-INFO +1 -1
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/video.py +18 -8
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/pyproject.toml +1 -1
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/LICENSE +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/README.md +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/cli/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/cli/cli_main.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/core/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/core/config.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/core/controller.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/anchor_sequence.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/corrector.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/base.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/extend_anchor.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/levenshtein.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/llm.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/no_space_punct_match.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/relaxed_word_count_match.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/repeat.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/sound_alike.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/syllables_match.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/word_count_match.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/word_operations.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/phrase_analyzer.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/text_utils.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.gitignore +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.yarn/install-state.gz +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.yarn/releases/yarn-4.6.0.cjs +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.yarnrc.yml +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/README.md +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/assets/index-D0Gr3Ep7.js +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/assets/index-D0Gr3Ep7.js.map +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/index.html +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/vite.svg +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/eslint.config.js +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/index.html +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/package.json +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/public/vite.svg +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/App.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/api.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/AudioPlayer.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/CorrectionMetrics.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/DetailsModal.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/EditModal.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/FileUpload.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/Header.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/ModeSelector.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/PreviewVideoSection.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/ReferenceView.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/ReviewChangesModal.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/SegmentDetailsModal.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/TimelineEditor.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/WordEditControls.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/constants.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/hooks/useWordClick.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/styles.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/types.js +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/types.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/keyboardHandlers.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/localStorage.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/referenceLineCalculator.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/segmentOperations.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/wordUtils.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/main.tsx +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types/global.d.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types.js +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/validation.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/vite-env.d.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.app.json +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.json +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.node.json +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.tsbuildinfo +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.d.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.js +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.ts +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/yarn.lock +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/base_lyrics_provider.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/file_provider.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/genius.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/spotify.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/ass.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/ass_specs.txt +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/config.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/constants.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/event.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/formatters.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/lyrics_line.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/lyrics_screen.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/section_detector.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/section_screen.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/style.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdg.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/cdg.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/composer.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/config.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/images/instrumental.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/images/intro.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/pack.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/render.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/centertexttoplogobottomtext.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/circlein.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/circleout.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/fizzle.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/largecentertexttoplogo.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/rectangle.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/spiral.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/topleftmusicalnotes.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wipein.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wipeleft.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wipeout.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wiperight.png +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/utils.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/AvenirNext-Bold.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/DMSans-VariableFont_opsz,wght.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/DMSerifDisplay-Regular.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/Oswald-SemiBold.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/Zurich_Cn_BT_Bold.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/arial.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/georgia.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/verdana.ttf +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/generator.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/lrc_to_cdg.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/lyrics_file.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/plain_text.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/segment_resizer.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/subtitles.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/review/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/review/server.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/storage/__init__.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/storage/dropbox.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/transcribers/audioshake.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/transcribers/base_transcriber.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/transcribers/whisper.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/types.py +0 -0
- {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/utils/word_utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: lyrics-transcriber
|
3
|
-
Version: 0.43.
|
3
|
+
Version: 0.43.1
|
4
4
|
Summary: Automatically create synchronised lyrics files in ASS and MidiCo LRC formats with word-level timestamps, using Whisper and lyrics from Genius and Spotify
|
5
5
|
License: MIT
|
6
6
|
Author: Andrew Beveridge
|
@@ -63,8 +63,12 @@ class VideoGenerator:
|
|
63
63
|
raise FileNotFoundError(f"Audio file not found: {audio_path}")
|
64
64
|
|
65
65
|
try:
|
66
|
-
# Create a temporary copy of the ASS file with a
|
67
|
-
|
66
|
+
# Create a temporary copy of the ASS file with a unique filename
|
67
|
+
import time
|
68
|
+
|
69
|
+
safe_prefix = "".join(c if c.isalnum() else "_" for c in output_prefix)
|
70
|
+
timestamp = int(time.time() * 1000)
|
71
|
+
temp_ass_path = os.path.join(self.cache_dir, f"temp_subtitles_{safe_prefix}_{timestamp}.ass")
|
68
72
|
import shutil
|
69
73
|
|
70
74
|
shutil.copy2(ass_path, temp_ass_path)
|
@@ -75,13 +79,14 @@ class VideoGenerator:
|
|
75
79
|
self.logger.info(f"Video generated: {output_path}")
|
76
80
|
|
77
81
|
# Clean up temporary file
|
78
|
-
os.
|
82
|
+
if os.path.exists(temp_ass_path):
|
83
|
+
os.remove(temp_ass_path)
|
79
84
|
return output_path
|
80
85
|
|
81
86
|
except Exception as e:
|
82
87
|
self.logger.error(f"Failed to generate video: {str(e)}")
|
83
88
|
# Clean up temporary file in case of error
|
84
|
-
if "temp_ass_path" in locals():
|
89
|
+
if "temp_ass_path" in locals() and os.path.exists(temp_ass_path):
|
85
90
|
try:
|
86
91
|
os.remove(temp_ass_path)
|
87
92
|
except:
|
@@ -109,8 +114,12 @@ class VideoGenerator:
|
|
109
114
|
raise FileNotFoundError(f"Audio file not found: {audio_path}")
|
110
115
|
|
111
116
|
try:
|
112
|
-
# Create a temporary copy of the ASS file with a
|
113
|
-
|
117
|
+
# Create a temporary copy of the ASS file with a unique filename
|
118
|
+
import time
|
119
|
+
|
120
|
+
safe_prefix = "".join(c if c.isalnum() else "_" for c in output_prefix)
|
121
|
+
timestamp = int(time.time() * 1000)
|
122
|
+
temp_ass_path = os.path.join(self.cache_dir, f"temp_preview_subtitles_{safe_prefix}_{timestamp}.ass")
|
114
123
|
import shutil
|
115
124
|
|
116
125
|
shutil.copy2(ass_path, temp_ass_path)
|
@@ -121,13 +130,14 @@ class VideoGenerator:
|
|
121
130
|
self.logger.info(f"Preview video generated: {output_path}")
|
122
131
|
|
123
132
|
# Clean up temporary file
|
124
|
-
os.
|
133
|
+
if os.path.exists(temp_ass_path):
|
134
|
+
os.remove(temp_ass_path)
|
125
135
|
return output_path
|
126
136
|
|
127
137
|
except Exception as e:
|
128
138
|
self.logger.error(f"Failed to generate preview video: {str(e)}")
|
129
139
|
# Clean up temporary file in case of error
|
130
|
-
if "temp_ass_path" in locals():
|
140
|
+
if "temp_ass_path" in locals() and os.path.exists(temp_ass_path):
|
131
141
|
try:
|
132
142
|
os.remove(temp_ass_path)
|
133
143
|
except:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "lyrics-transcriber"
|
3
|
-
version = "0.43.
|
3
|
+
version = "0.43.1"
|
4
4
|
description = "Automatically create synchronised lyrics files in ASS and MidiCo LRC formats with word-level timestamps, using Whisper and lyrics from Genius and Spotify"
|
5
5
|
authors = ["Andrew Beveridge <andrew@beveridge.uk>"]
|
6
6
|
license = "MIT"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/core/controller.py
RENAMED
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/corrector.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/text_utils.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.gitignore
RENAMED
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.yarnrc.yml
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/README.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/index.html
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/vite.svg
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/eslint.config.js
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/index.html
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/package.json
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/public/vite.svg
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/App.tsx
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/api.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/main.tsx
RENAMED
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types.js
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.json
RENAMED
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.d.ts
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.js
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.ts
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/yarn.lock
RENAMED
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/file_provider.py
RENAMED
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/spotify.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/__init__.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/__init__.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/ass.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/ass_specs.txt
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/config.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/constants.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/event.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/formatters.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/lyrics_line.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/style.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/cdg.py
RENAMED
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/config.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/pack.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/render.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/arial.ttf
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/georgia.ttf
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/verdana.ttf
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/generator.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/lrc_to_cdg.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/lyrics_file.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/plain_text.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/segment_resizer.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/subtitles.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/review/__init__.py
RENAMED
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/storage/__init__.py
RENAMED
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/storage/dropbox.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/transcribers/whisper.py
RENAMED
File without changes
|
File without changes
|
{lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/utils/word_utils.py
RENAMED
File without changes
|