Skip to content

[FEAT] Automatic update logic for yt-dlp pip package#58

Merged
z1nc0r3 merged 12 commits intomainfrom
feat-automatic-update-for-ytdlp-pkg
Jan 28, 2026
Merged

[FEAT] Automatic update logic for yt-dlp pip package#58
z1nc0r3 merged 12 commits intomainfrom
feat-automatic-update-for-ytdlp-pkg

Conversation

@z1nc0r3
Copy link
Owner

@z1nc0r3 z1nc0r3 commented Jan 28, 2026

This feature will ensure the yt-dlp Python package is updated every 5 days, so users always have the latest version.

@z1nc0r3 z1nc0r3 added this to the v2.2.1 milestone Jan 28, 2026
@z1nc0r3 z1nc0r3 requested a review from Copilot January 28, 2026 16:56
@z1nc0r3 z1nc0r3 self-assigned this Jan 28, 2026
@z1nc0r3 z1nc0r3 added the core label Jan 28, 2026

This comment was marked as resolved.

Copy link
Contributor

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.


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

Comment on lines +332 to +335
[sys.executable, "-m", "pip", "install", "--upgrade", "--target", LIB_PATH, "yt-dlp"],
["python", "-m", "pip", "install", "--upgrade", "--target", LIB_PATH, "yt-dlp"],
["pip", "install", "--upgrade", "--target", LIB_PATH, "yt-dlp"],
]
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

While the lib folder is in sys.path (as seen in run.py), installing yt-dlp with --target to the lib folder can create version conflicts. Since sys.path has lib before the system site-packages, the updated version in lib will take precedence. However, if yt-dlp is already installed system-wide (as indicated by requirements.txt), you could end up with duplicate installations. Additionally, --target doesn't handle dependencies the same way as normal pip install, which could lead to missing or conflicting dependency versions. Consider using pip install --upgrade without --target to upgrade the system installation, or ensure the lib folder is the only source of yt-dlp packages.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.


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

@z1nc0r3 z1nc0r3 merged commit 748ecd0 into main Jan 28, 2026
6 checks passed
@z1nc0r3 z1nc0r3 deleted the feat-automatic-update-for-ytdlp-pkg branch January 28, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant