英文:
How to (step by step) add a git patch
问题
My problem with youtube-dl seems to be a well-documented albeit recent bug: https://github.com/ytdl-org/youtube-dl/issues/31542 In the thread a contributor writes "use this patch if u [sic] cannot wait for the release fix": https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334
I have tried a couple of different ways to apply this patch with no success:
git diff > https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334
bash: https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334: No such file or directory
and
curl https://github.com/critrolesync/critrolesync.github.io/commit/b34accf6638e2dae957b14fb14c4895a92eb2324 | git apply
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 170k 0 170k 0 0 137k 0 --:--:-- 0:00:01 --:--:-- 137k
error: unrecognized input
Can anyone tell me how to do it?
英文:
My problem with youtube-dl seems to be a well documented allbeit recent bug: https://github.com/ytdl-org/youtube-dl/issues/31542 In the thread a contributor writes "use this patch if u [sic] cannot wait for release fix": https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334
I have tried a couple different ways to apply this patch with no success:
git diff > https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334
bash: https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334: No such file or directory
and
curl https://github.com/critrolesync/critrolesync.github.io/commit/b34accf6638e2dae957b14fb14c4895a92eb2324 | git apply
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 170k 0 170k 0 0 137k 0 --:--:-- 0:00:01 --:--:-- 137k
error: unrecognized input
Can anyone tell me how to do it?
答案1
得分: 3
评论者可能是指你下载并安装他们链接的 yt-dlp
版本,而不是 youtube-dl
在 git 上的版本。
一般来说,这个评论并不太有帮助,因为项目 yt-dlp
从大约在 2020-09-22 时开始分叉出来,它们不再是相同的软件,而且从一个项目到另一个项目的补丁将非常难以应用。这两个项目确实有相关的历史,但它们已经有一段时间的有意分歧。
英文:
The commenter probably means for you to download and install the release of yt-dlp
they linked, rather than whatever's in git for youtube-dl
.
Generally an unhelpful comment, since the project yt-dlp
diverged from youtube-dl
somewhere around 2020-09-22; they're not the same software anymore, and patches from one are going to be really hard to apply to the other. The two projects do have related history, but they've been diverging on purpose for a while.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论