Skip to content

v25.12.19#1370

Merged
ROBERT-MCDOWELL merged 2 commits intomainfrom
v25
Dec 19, 2025
Merged

v25.12.19#1370
ROBERT-MCDOWELL merged 2 commits intomainfrom
v25

Conversation

@ROBERT-MCDOWELL
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 19, 2025 04:37
@ROBERT-MCDOWELL ROBERT-MCDOWELL merged commit a8a3c15 into main Dec 19, 2025
4 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR contains minor bug fixes and consistency improvements across error messages, variable naming, and script syntax. The changes primarily focus on correcting error message formatting and ensuring consistency in variable naming conventions.

  • Error message corrections in voice_extractor.py (function name fixes, punctuation consistency, f-string formatting)
  • Shell script variable naming consistency change from lowercase to uppercase
  • Windows batch file modifications to improve string handling in pip installation loop

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
lib/classes/voice_extractor.py Corrects error messages: fixes function name in error message, standardizes punctuation from colons to periods, and adds missing f-string prefix for proper variable interpolation
ebook2audiobook.sh Updates variable naming from lowercase current_pyvenv to uppercase CURRENT_PYVENV for consistency with usage on line 800
ebook2audiobook.cmd Modifies pip installation loop: changes substring syntax and adds quotes around package variable for safer handling of package names with spaces

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ebook2audiobook.cmd
set count_pkg=0
for /f "usebackq delims=" %%P in ("%SCRIPT_DIR%\requirements.txt") do (
if not "%%P"=="" if not "%%P:~0,1%"=="#" (
if not "%%P"=="" if not "%%P:~0,1"=="#" (
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The closing percent sign '%' should not be removed from the substring operation. In Windows batch files, the correct syntax for substring extraction is %%P:~0,1% (with the closing %), not %%P:~0,1. Removing the closing percent sign will cause a syntax error.

Suggested change
if not "%%P"=="" if not "%%P:~0,1"=="#" (
if not "%%P"=="" if not "%%P:~0,1%"=="#" (

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants