Skip to content

Commit e670a05

Browse files
committed
Update doc and youtube-dl scripts
Update doc and youtube-dl scripts Signed-off-by: Bensuperpc <[email protected]>
1 parent 6c4b576 commit e670a05

File tree

4 files changed

+51
-5
lines changed

4 files changed

+51
-5
lines changed

Commands.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@
110110
- [`gource-nvenc`](#gource-nvenc)
111111
- [`gource-h265`](#gource-h265)
112112
- [`h265-nvenc`](#h265-nvenc)
113+
- [`youtube-dl-playlist-full`](#youtube-dl-playlist-full)
114+
- [`youtube-dl-playlist-audio`](#youtube-dl-playlist-audio)
113115
- (WIP)
114-
115116
### clean-arch
116117

117118
Clean ArchLinux and Manjaro (Remove old packages...)
@@ -647,3 +648,19 @@ Convert video to h265 (with nvenc)
647648
```bash
648649
$ h265-nvenc <input file> <output file>
649650
```
651+
652+
### youtube-dl-playlist-full
653+
654+
Download playlist video with best quality
655+
656+
```bash
657+
$ youtube-dl-playlist-full <URL>
658+
```
659+
660+
### youtube-dl-playlist-audio
661+
662+
Download playlist audio only with best quality
663+
664+
```bash
665+
$ youtube-dl-playlist-audio <URL>
666+
```

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#//////////////////////////////////////////////////////////////
2121
PROJECT_NAME := scripts
2222
SHELL := bash
23-
VERSION := 1.1.15
23+
VERSION := 1.3.1
2424
RM := rm
2525

2626
all: install

video/youtube-dl-playlist-audio.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
#//////////////////////////////////////////////////////////////
4+
#// ____ //
5+
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
6+
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
7+
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
8+
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
9+
#// |_| |_| //
10+
#//////////////////////////////////////////////////////////////
11+
#// //
12+
#// Script, 2021 //
13+
#// Created: 27, May, 2021 //
14+
#// Modified: 02, August, 2021 //
15+
#// file: - //
16+
#// - //
17+
#// Source: - //
18+
#// OS: ALL //
19+
#// CPU: ALL //
20+
#// //
21+
#//////////////////////////////////////////////////////////////
22+
23+
if [ $# -eq 0 ]
24+
then
25+
echo "No arguments supplied"
26+
exit 1
27+
fi
28+
# --write-description
29+
youtube-dl --get-id "$1" | xargs -I '{}' -P 4 youtube-dl --write-auto-sub --continue --embed-thumbnail --ignore-errors -f bestaudio --audio-format best --extract-audio --add-metadata -o "%(title)s-%(id)s.%(ext)s" 'https://youtube.com/watch?v={}'

video/youtube-dl.sh renamed to video/youtube-dl-playlist-full.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euo pipefail
1111
#// //
1212
#// Script, 2021 //
1313
#// Created: 27, May, 2021 //
14-
#// Modified: 24, July, 2021 //
14+
#// Modified: 02, August, 2021 //
1515
#// file: - //
1616
#// - //
1717
#// Source: - //
@@ -25,5 +25,5 @@ then
2525
echo "No arguments supplied"
2626
exit 1
2727
fi
28-
29-
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' --merge-output-format mp4 -o '%(title)s-%(id)s-%(format_id)s.%(ext)s' "$1"
28+
# --write-description
29+
youtube-dl --get-id "$1" | xargs -I '{}' -P 4 youtube-dl --write-auto-sub --continue --embed-thumbnail --ignore-errors -f best --add-metadata -o "%(title)s-%(id)s.%(ext)s" 'https://youtube.com/watch?v={}'

0 commit comments

Comments
 (0)