Skip to content

Commit 65bf714

Browse files
committed
Fix NameError: subprocess not defined in _spawn_transcribe (issue #6)
After v0.12.6/v0.12.7's HLS download fix, the next code path users hit was _spawn_transcribe → subprocess.Popen, which crashed with NameError because the function uses the bare name `subprocess` while the rest of the module imports it locally as `import subprocess as _sp`. Reproduces immediately when the user has --transcribe enabled during download. Fix is a one-line module-level `import subprocess`. User report (issue #6): Saved → /Volumes/.../EE4802IE4213Week1.mp4 [transcribe] Starting background transcription: EE4802IE4213Week1.mp4 [error] Unexpected error: name 'subprocess' is not defined
1 parent fae1e78 commit 65bf714

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

downloader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import os
2525
import random
2626
import re
27+
import subprocess
2728
import sys
2829
import time
2930
from datetime import datetime, timezone

electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "auto-note",
3-
"version": "0.12.7",
3+
"version": "0.12.8",
44
"description": "AutoNote — lecture notes generator from Canvas recordings",
55
"homepage": "https://github.com/nodeeeeee/Auto-Note",
66
"author": {

0 commit comments

Comments
 (0)