-
Notifications
You must be signed in to change notification settings - Fork 157
[Refactor] v2 update | v2版本重构升级 #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 implements a v2 refactor that introduces a new download manager for handling video metadata retrieval and downloads, updates project configurations, and adds documentation and guidelines for development.
- Introduces DownloadManager in src/download.py with methods for fetching metadata and downloading videos.
- Updates project configuration via src/config.py, pyproject.toml, and restructures the main execution flow in main.py.
- Provides legacy utility functions and documentation updates in the archive folder, README.md, DEVELOPE.md, and CONTRIBUTING.md.
Reviewed Changes
Copilot reviewed 32 out of 34 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/download.py | New download manager class implementing video metadata and download functionality. |
| src/core.py | Basic module that imports global configurations. |
| src/config.py | New configuration settings for directories, tools, and service details. |
| pyproject.toml | Updated project configuration with dependency definitions. |
| main.py | Main entry point now invokes a self-check procedure. |
| archive/utils.py | Legacy utility for video download using you-get with a potential return value bug. |
| archive/main.py | Legacy test script for the old download and analysis workflow. |
| README.md | Updated logo path and simplified project description for v2. |
| DEVELOPE.md | New development guide documentation. |
| CONTRIBUTING.md | New contributing guidelines with submission and quality requirements. |
Files not reviewed (2)
- .python-version: Language not supported
- config.cfg: Language not supported
| except Exception as e: | ||
| print("发生错误:", str(e)) | ||
| file_path = "" | ||
| return bv_number |
Copilot
AI
Apr 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The download_video function's docstring indicates it should return the file path, but it returns 'bv_number' instead. Update the return statement to 'return file_path' to ensure correct behavior.
| return bv_number | |
| return file_path |
还在构建中