mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Remove unused import and convert f-strings without placeholders
This commit is contained in:
parent
9c4a0043dd
commit
b86d8099f1
1 changed files with 4 additions and 5 deletions
|
@ -9,7 +9,6 @@ import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
|
||||||
import tempfile
|
import tempfile
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
@ -249,7 +248,7 @@ def main():
|
||||||
f" ({reduction:.1f}% reduction)"
|
f" ({reduction:.1f}% reduction)"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
print(f" ✗ Failed to compress")
|
print(" ✗ Failed to compress")
|
||||||
if os.path.exists(temp_file):
|
if os.path.exists(temp_file):
|
||||||
os.remove(temp_file)
|
os.remove(temp_file)
|
||||||
else:
|
else:
|
||||||
|
@ -308,7 +307,7 @@ def main():
|
||||||
print(f"Marker at {minutes}:{seconds:02d} - {message}")
|
print(f"Marker at {minutes}:{seconds:02d} - {message}")
|
||||||
|
|
||||||
if not needs_update:
|
if not needs_update:
|
||||||
print(f" ✓ Audio file already exists with correct content")
|
print(" ✓ Audio file already exists with correct content")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if args.dry_run:
|
if args.dry_run:
|
||||||
|
@ -319,11 +318,11 @@ def main():
|
||||||
message, output_file, voice=selected_voice, bitrate=selected_bitrate
|
message, output_file, voice=selected_voice, bitrate=selected_bitrate
|
||||||
)
|
)
|
||||||
if success:
|
if success:
|
||||||
print(f" ✓ Generated audio file")
|
print(" ✓ Generated audio file")
|
||||||
# Update metadata with the new message
|
# Update metadata with the new message
|
||||||
metadata[timestamp_key] = message
|
metadata[timestamp_key] = message
|
||||||
else:
|
else:
|
||||||
print(f" ✗ Failed to generate audio")
|
print(" ✗ Failed to generate audio")
|
||||||
|
|
||||||
# Save updated metadata
|
# Save updated metadata
|
||||||
if not args.dry_run:
|
if not args.dry_run:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue