File tree Expand file tree Collapse file tree 4 files changed +51
-5
lines changed Expand file tree Collapse file tree 4 files changed +51
-5
lines changed Original file line number Diff line number Diff line change 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
117118Clean 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+ ```
Original file line number Diff line number Diff line change 2020# //////////////////////////////////////////////////////////////
2121PROJECT_NAME := scripts
2222SHELL := bash
23- VERSION := 1.1.15
23+ VERSION := 1.3.1
2424RM := rm
2525
2626all : install
Original file line number Diff line number Diff line change 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={}'
Original file line number Diff line number Diff 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: - //
2525 echo " No arguments supplied"
2626 exit 1
2727fi
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={} '
You can’t perform that action at this time.
0 commit comments