fix: 修复 B 站下载与任务状态文件异常#340
Open
iorireal wants to merge 1 commit into
Open
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a focused replacement for #332. It keeps the PR scoped to the user-facing backend failures from #330 and removes the unrelated agent/Claude docs, AI workflow files, frontend lint cleanup, Mermaid work, and large lockfile churn from the previous PR.
Changes
yt-dlpfrom2025.3.31to2026.3.17to pick up newer Bilibili extractor/Wbi handling.get_logger(__name__).CookieConfigManagersupport and add acookies.txtfallback lookup path for local/backend/Docker usage.skip_downloadsupport toBilibiliDownloader.download()so subtitle-first flows can extract metadata without downloading media.cookies.txtfiles so future PRs do not accidentally include them.skip_downloadinterface compatibility.Fixes #330.
Validation
python -m py_compile backend/app/downloaders/bilibili_downloader.py backend/app/downloaders/youtube_downloader.py backend/app/routers/note.py backend/app/services/note.py backend/tests/test_note_status_resilience.pycd backend && python -m pytest tests/test_note_status_resilience.py tests/test_note_helper.py -q-> 5 passedcd backend && python -m pytest tests/ -q-> 14 passed, 1 failed intests/test_task_serial_executor.py::TestTaskSerialExecutor::test_executor_runs_tasks_one_by_one; this is the existingorigin/masterbaseline mismatch whereSerialTaskExecutoris currently an alias forConcurrentTaskExecutor, not introduced by this PR.