Skip to content

Commit

Permalink
Bumped version with fix, cleaned up AS logging
Browse files Browse the repository at this point in the history
  • Loading branch information
beveradb committed Dec 27, 2024
1 parent dae1e32 commit 166258e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lyrics_transcriber/audioshake_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,10 @@ def _process_result(self, job_data):
output_assets = job_data.get("outputAssets", [])
self.logger.debug(f"Output assets: {output_assets}")

output_asset = next((asset for asset in output_assets if asset["name"] == "transcription.json"), None)
if not output_asset:
self.logger.warning("'transcription.json' not found, looking for 'alignment.json'")
output_asset = next((asset for asset in output_assets if asset["name"] == "alignment.json"), None)
output_asset = next((asset for asset in output_assets if asset["name"] == "alignment.json"), None)

if not output_asset:
self.logger.error("Neither 'transcription.json' nor 'alignment.json' found in job results")
self.logger.error("'alignment.json' found in job results")
self.logger.error(f"Available output assets: {[asset['name'] for asset in output_assets]}")
raise Exception("Required output not found in job results")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lyrics-transcriber"
version = "0.19.0"
version = "0.19.2"
description = "Automatically create synchronised lyrics files in ASS and MidiCo LRC formats with word-level timestamps, using Whisper and lyrics from Genius and Spotify"
authors = ["Andrew Beveridge <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 166258e

Please sign in to comment.