mirror of
https://github.com/wekan/wekan.git
synced 2026-01-25 02:36:09 +01:00
Updated YouTube (markdown)
parent
addf0be5e1
commit
4cc76f6585
1 changed files with 35 additions and 2 deletions
37
YouTube.md
37
YouTube.md
|
|
@ -5,10 +5,43 @@
|
|||
- Ignores unavailable videos
|
||||
- Using https://github.com/yt-dlp/yt-dlp
|
||||
|
||||
## Install on Debian or Ubuntu based Linux
|
||||
## Install on macOS
|
||||
|
||||
1. Install vlc and yt-dlp:
|
||||
```
|
||||
brew install vlc yt-dlp
|
||||
```
|
||||
2. Edit .zshrc:
|
||||
```
|
||||
nano .zshrc
|
||||
```
|
||||
3. Add there this. (noglob option make possible that there is no no need to add escape backslash before `?` in YouTube URL)
|
||||
```
|
||||
alias yd="noglob /opt/homebrew/bin/yt-dlp -f 'bv+ba/b' --sub-langs all,-live_chat --compat-options no-youtube-unavailable-videos --audio-multistreams --video-multistreams --no-clean-infojson --embed-subs"
|
||||
```
|
||||
4. Save and Exith with Ctrl-o Enter Ctrl-x
|
||||
|
||||
5. In new terminal download YouTube video or channel, and then play video:
|
||||
```
|
||||
yd https://youtube.com/....
|
||||
|
||||
vlc "filename.webm"
|
||||
```
|
||||
|
||||
## Install on New Debian or Ubuntu based Linux
|
||||
|
||||
```
|
||||
sudo apt install python3-pip ffmpeg
|
||||
sudo apt-get -y install vlc yt-dlp
|
||||
```
|
||||
Add to .bashrc:
|
||||
```
|
||||
alias yd="~/.local/bin/yt-dlp -f 'bv+ba/b' --sub-langs all,-live_chat --compat-options no-youtube-unavailable-videos --audio-multistreams --video-multistreams --no-clean-infojson --embed-subs"
|
||||
```
|
||||
|
||||
## Install on old Debian or Ubuntu based Linux
|
||||
|
||||
```
|
||||
sudo apt-get -y install vlc python3-pip ffmpeg
|
||||
|
||||
pip3 install pip --upgrade --user
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue