NapoleonWils0n
- Dec 18, 2023
- #1
Freebsd install the latest version of yt-dlp even if you are running quarterly packages.
Quarterly packages are released every 3 months which means the version of yt-dlp will be quite old
freebsd yt-dlp latest release install
cerberus/freebsd/yt-dlp-python-symlink.org at master · NapoleonWils0n/cerberus
cerberus code library. Contribute to NapoleonWils0n/cerberus development by creating an account on GitHub.
github.com
we will manually download the latest release of yt-dlp
however the the yt-dlp shebang points to python3 so we need to fix issue using a symlink
and alter our shell path so binaries in our home bin directory override those installed in /usr/local/bin
this will allow applications that use yt-dlp in the backend to use the lastest version
instead of the old version installed with pkg
the yt-dlp shebang points to python3
so we need to create a symlink from python 3.9 to python3
obviously you need python3.9 installed
Code:
sudo ln -s /usr/local/bin/python3.9 /usr/local/bin/python3
edit your ~/.zshenv
Code:
vi ~/.zshenv
set your path so that the bin directory in your home comes before /usr/local/bin
Code:
typeset -U PATH pathpath=("$HOME/bin" "/usr/local/bin" "$path[@]")export PATH
this allows us override yt-dlp installed in /usr/local/bin with our newer version install in the bin directory in your home
download yt-dlp from the release on github
Releases · yt-dlp/yt-dlp
A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp
github.com
make yt-dlp executable
Code:
chmod +x yt-dlp
and move it to the bin directory in your home
if you dont have a bin directory create it
Code:
mv yt-dlp ~/bin
run which yt-dlp
Code:
which yt-dlp
it should output
Code:
/home/username/bin/yt-dlp
instead of
Code:
/usr/local/bin/yt-dlp
check the version
Code:
yt-dlp --version
ouput
2023.11.16
pkg version
Code:
/usr/local/bin/yt-dlp --version
outputs
2023.07.06
update yt-dlp in your bin directory by running
Code:
yt-dlp -U
B
balanga
- Jun 12, 2024
- #2
Is all this still necessary?
My yt-dlp --version is 2024.05.27
B
bsdcode
- Jun 12, 2024
- #3
Thanks!
In my opinion
www/yt-dlpshould be one of the few exceptional ports getting version upgrades in the quarterly branch. Changes on youtube etc. happen quite often and can render yt-dlp in quarterly completely useless until the next branch. But of course that's for the port maintainer to decide.
OP
NapoleonWils0n
- Jun 12, 2024
- Thread Starter
- #4
yt-dlp package version
Code:
/usr/local/bin/yt-dlp --version
2024.03.10
yt-dlp manually installed version
Code:
yt-dlp --version
2024.05.27
answer = yes
blackbird9
- Jun 12, 2024
- #5
I do almost the same as you, but usually I clone the yt-dlp source and then run a 'make install' from within that directory. Your method is a bit cleaner
Alexander88207
Enthusiast
- Jun 13, 2024
- #6
bsdcode said:
Thanks!
In my opinion
www/yt-dlpshould be one of the few exceptional ports getting version upgrades in the quarterly branch. Changes on youtube etc. happen quite often and can render yt-dlp in quarterly completely useless until the next branch. But of course that's for the port maintainer to decide.
Well, Merge from Main is allowed among other reasons as for example bug fixes so this should be not a problem.
Kaminar
- Jun 13, 2024
- #7
NapoleonWils0n said:
however the the yt-dlp shebang points to python3 so we need to fix issue using a symlink
I install or update yt-dlp with PIP (
devel/py-pip) to the home directory as a regular user. I don't need to tweak anything, yt-dlp works without any issues and I have the latest version available.
B
balanga
- Jun 14, 2024
- #8
Kaminar said:
I install or update yt-dlp with PIP (
devel/py-pip) to the home directory as a regular user. I don't need to tweak anything, yt-dlp works without any issues and I have the latest version available.
Exactly how do you install yt-dlp if not as a pkg?
Kaminar
- Jun 14, 2024
- #9
balanga said:
Exactly how do you install yt-dlp if not as a pkg?
- Add
~/.local/bin
toPATH
variable. - Install devel/py-pip.
- Install yt-dlp to your home directory with command
$ pip install --user yt-dlp
.
If a new version of yt-dlp is available, you can upgrade to it using the command $ pip install --user --upgrade yt-dlp
.
B
balanga
- Jun 14, 2024
- #10
Can yt-dlp capture videos embedded in X/twitter posts?
S
scottro
- Jun 14, 2024
- #11
I use latest rather than quarterly, and it seems to be the current version.yt-dlp --version2024.05.27
OP
NapoleonWils0n
- Jun 14, 2024
- Thread Starter
- #12
balanga said:
Can yt-dlp capture videos embedded in X/twitter posts?
yt-dlp/supportedsites.md at master · yt-dlp/yt-dlp
A feature-rich command-line audio/video downloader - yt-dlp/yt-dlp
github.com
blackbird9
- Jun 14, 2024
- #13
balanga said:
Can yt-dlp capture videos embedded in X/twitter posts?
I tried a couple of times, I could never get it to work...
C
Charlie_
- Jun 14, 2024
- #14
balanga said:
Can yt-dlp capture videos embedded in X/twitter posts?
yes. yt-dlp --list-extractors | grep twitter
Code:
twittertwitter:amplifytwitter:broadcasttwitter:cardtwitter:shortenertwitter:spaces
cracauer@
Developer
- Jun 14, 2024
- #15
balanga said:
Can yt-dlp capture videos embedded in X/twitter posts?
At least it used to, yes. That functionality can break every now and then.
blackbird9
- Jun 14, 2024
- #16
Maybe I was just unlucky
B
balanga
- Jun 14, 2024
- #17
I just tried downloading a Twitter/X video at it worked fine.
You must log in or register to reply here.