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.
Files changed (146) hide show
  1. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/PKG-INFO +1 -1
  2. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/video.py +18 -8
  3. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/pyproject.toml +1 -1
  4. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/LICENSE +0 -0
  5. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/README.md +0 -0
  6. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/__init__.py +0 -0
  7. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/cli/__init__.py +0 -0
  8. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/cli/cli_main.py +0 -0
  9. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/core/__init__.py +0 -0
  10. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/core/config.py +0 -0
  11. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/core/controller.py +0 -0
  12. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/anchor_sequence.py +0 -0
  13. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/corrector.py +0 -0
  14. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/__init__.py +0 -0
  15. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/base.py +0 -0
  16. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/extend_anchor.py +0 -0
  17. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/levenshtein.py +0 -0
  18. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/llm.py +0 -0
  19. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/no_space_punct_match.py +0 -0
  20. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/relaxed_word_count_match.py +0 -0
  21. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/repeat.py +0 -0
  22. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/sound_alike.py +0 -0
  23. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/syllables_match.py +0 -0
  24. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/word_count_match.py +0 -0
  25. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/handlers/word_operations.py +0 -0
  26. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/phrase_analyzer.py +0 -0
  27. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/correction/text_utils.py +0 -0
  28. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.gitignore +0 -0
  29. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.yarn/install-state.gz +0 -0
  30. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.yarn/releases/yarn-4.6.0.cjs +0 -0
  31. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/.yarnrc.yml +0 -0
  32. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/README.md +0 -0
  33. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/assets/index-D0Gr3Ep7.js +0 -0
  34. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/assets/index-D0Gr3Ep7.js.map +0 -0
  35. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/index.html +0 -0
  36. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/dist/vite.svg +0 -0
  37. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/eslint.config.js +0 -0
  38. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/index.html +0 -0
  39. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/package.json +0 -0
  40. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/public/vite.svg +0 -0
  41. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/App.tsx +0 -0
  42. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/api.ts +0 -0
  43. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/AudioPlayer.tsx +0 -0
  44. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/CorrectionMetrics.tsx +0 -0
  45. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/DetailsModal.tsx +0 -0
  46. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/EditModal.tsx +0 -0
  47. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/FileUpload.tsx +0 -0
  48. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/Header.tsx +0 -0
  49. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +0 -0
  50. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/ModeSelector.tsx +0 -0
  51. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/PreviewVideoSection.tsx +0 -0
  52. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/ReferenceView.tsx +0 -0
  53. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/ReviewChangesModal.tsx +0 -0
  54. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/SegmentDetailsModal.tsx +0 -0
  55. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/TimelineEditor.tsx +0 -0
  56. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +0 -0
  57. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/WordEditControls.tsx +0 -0
  58. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +0 -0
  59. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +0 -0
  60. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +0 -0
  61. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/constants.ts +0 -0
  62. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/hooks/useWordClick.ts +0 -0
  63. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/styles.ts +0 -0
  64. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/types.js +0 -0
  65. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/types.ts +0 -0
  66. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/keyboardHandlers.ts +0 -0
  67. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/localStorage.ts +0 -0
  68. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/referenceLineCalculator.ts +0 -0
  69. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/segmentOperations.ts +0 -0
  70. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/components/shared/utils/wordUtils.ts +0 -0
  71. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/main.tsx +0 -0
  72. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types/global.d.ts +0 -0
  73. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types.js +0 -0
  74. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/types.ts +0 -0
  75. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/validation.ts +0 -0
  76. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/src/vite-env.d.ts +0 -0
  77. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.app.json +0 -0
  78. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.json +0 -0
  79. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.node.json +0 -0
  80. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/tsconfig.tsbuildinfo +0 -0
  81. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.d.ts +0 -0
  82. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.js +0 -0
  83. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/vite.config.ts +0 -0
  84. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/frontend/yarn.lock +0 -0
  85. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/base_lyrics_provider.py +0 -0
  86. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/file_provider.py +0 -0
  87. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/genius.py +0 -0
  88. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/lyrics/spotify.py +0 -0
  89. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/__init__.py +0 -0
  90. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/__init__.py +0 -0
  91. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/ass.py +0 -0
  92. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/ass_specs.txt +0 -0
  93. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/config.py +0 -0
  94. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/constants.py +0 -0
  95. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/event.py +0 -0
  96. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/formatters.py +0 -0
  97. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/lyrics_line.py +0 -0
  98. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/lyrics_screen.py +0 -0
  99. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/section_detector.py +0 -0
  100. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/section_screen.py +0 -0
  101. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/ass/style.py +0 -0
  102. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdg.py +0 -0
  103. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/__init__.py +0 -0
  104. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/cdg.py +0 -0
  105. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/composer.py +0 -0
  106. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/config.py +0 -0
  107. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/images/instrumental.png +0 -0
  108. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/images/intro.png +0 -0
  109. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/pack.py +0 -0
  110. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/render.py +0 -0
  111. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/centertexttoplogobottomtext.png +0 -0
  112. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/circlein.png +0 -0
  113. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/circleout.png +0 -0
  114. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/fizzle.png +0 -0
  115. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/largecentertexttoplogo.png +0 -0
  116. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/rectangle.png +0 -0
  117. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/spiral.png +0 -0
  118. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/topleftmusicalnotes.png +0 -0
  119. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wipein.png +0 -0
  120. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wipeleft.png +0 -0
  121. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wipeout.png +0 -0
  122. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/transitions/wiperight.png +0 -0
  123. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/cdgmaker/utils.py +0 -0
  124. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/AvenirNext-Bold.ttf +0 -0
  125. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/DMSans-VariableFont_opsz,wght.ttf +0 -0
  126. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/DMSerifDisplay-Regular.ttf +0 -0
  127. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/Oswald-SemiBold.ttf +0 -0
  128. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/Zurich_Cn_BT_Bold.ttf +0 -0
  129. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/arial.ttf +0 -0
  130. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/georgia.ttf +0 -0
  131. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/fonts/verdana.ttf +0 -0
  132. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/generator.py +0 -0
  133. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/lrc_to_cdg.py +0 -0
  134. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/lyrics_file.py +0 -0
  135. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/plain_text.py +0 -0
  136. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/segment_resizer.py +0 -0
  137. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/output/subtitles.py +0 -0
  138. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/review/__init__.py +0 -0
  139. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/review/server.py +0 -0
  140. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/storage/__init__.py +0 -0
  141. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/storage/dropbox.py +0 -0
  142. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/transcribers/audioshake.py +0 -0
  143. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/transcribers/base_transcriber.py +0 -0
  144. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/transcribers/whisper.py +0 -0
  145. {lyrics_transcriber-0.43.0 → lyrics_transcriber-0.43.1}/lyrics_transcriber/types.py +0 -0
  146. {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.0
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 safe filename
67
- temp_ass_path = os.path.join(self.cache_dir, "temp_subtitles.ass")
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.remove(temp_ass_path)
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 safe filename
113
- temp_ass_path = os.path.join(self.cache_dir, "temp_preview_subtitles.ass")
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.remove(temp_ass_path)
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.0"
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"