Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
294 lines (261 loc) · 12.9 KB
/
Copy pathindex.html
File metadata and controls
294 lines (261 loc) · 12.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dlpcraft'</title>
<link rel="stylesheet" href="assets/styles/css/style.css">
<!-- favicon -->
<link rel="icon" type="image/png" href="assets/images/favicons/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="assets/images/favicons/favicon.svg" />
<link rel="shortcut icon" href="assets/images/favicons/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/images/favicons/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="dlpcraft" />
<link rel="manifest" href="assets/images/favicons/site.webmanifest" />
<meta name="title" content="DLP Craft - YT-DLP Command Generator">
<meta name="description"
content="Generate yt-dlp commands easily. Paste a URL, toggle options, and get a ready-to-run command instantly.">
<!-- Open Graph / Facebook / Discord -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://kerogs.github.io/dlpcraft/">
<meta property="og:title" content="DLP Craft - YT-DLP Command Generator">
<meta property="og:description"
content="Build yt-dlp commands without memorizing flags. Fast, simple, and efficient.">
<meta property="og:image" content="https://kerogs.github.io/dlpcraft/assets/images/preview.png">
<meta property="og:site_name" content="DLP Craft">
<meta property="og:locale" content="en_US">
<!-- Theme color -->
<meta name="theme-color" content="#D4C5B0">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://kerogs.github.io/dlpcraft/">
<meta name="twitter:title" content="DLP Craft - YT-DLP Command Generator">
<meta name="twitter:description"
content="Generate yt-dlp commands easily with a clean UI. No need to remember flags.">
<meta name="twitter:image" content="https://kerogs.github.io/dlpcraft/assets/images/preview.png">
<meta name="application-name" content="DLP Craft">
<meta name="apple-mobile-web-app-title" content="DLP Craft">
</head>
<body>
<header>
<nav>
<ul>
<a href="/">
<li class="logo">
<div class="title">
<h1 class="headingFont">dlpcraft</h1>
<span class="badge">v1.5.1-beta</span>
</div>
<p>A visual command builder for yt-dlp</p>
</li>
</a>
</ul>
<ul>
<a href="https://github.com/kerogs/dlpcraft" target="_blank">
<li class="github">
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<title>GitHub</title>
<path
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
<p>Github</p>
</li>
</a>
<li class="buttons" onclick="changeTheme()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="lucide lucide-sun-moon-icon lucide-sun-moon">
<path d="M12 2v2" />
<path
d="M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715" />
<path d="M16 12a4 4 0 0 0-4-4" />
<path d="m19 5-1.256 1.256" />
<path d="M20 12h2" />
</svg>
</li>
<!-- <li class="buttons rotate">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="lucide lucide-settings-icon lucide-settings">
<path
d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" />
<circle cx="12" cy="12" r="3" />
</svg>
</li> -->
</ul>
</nav>
</header>
<main>
<hr class="sep">
<div id="ffmpegWarning" class="alert-banner" style="display:none">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" />
<line x1="12" y1="9" x2="12" y2="13" />
<line x1="12" y1="17" x2="12.01" y2="17" />
</svg>
<div class="alert-content">
<span class="alert-title">ffmpeg required</span>
<span class="alert-desc">
One or more active options require ffmpeg to be installed on your
system.
</span>
</div>
<a href="https://ffmpeg.org/download.html" target="_blank" class="alert-link">Download ffmpeg ↗</a>
</div>
<div id="generator">
<!-- yt-dlp path -->
<div class="areaName">
<h2>YT-DLP Path</h2>
<p>Select the way you want to call yt-dlp.</p>
</div>
<div class="ytdlpPath">
<select name="ytdlpPath" id="ytdlpPath">
<option value="path">yt-dlp</option>
<option value="exe">./yt-dlp.exe</option>
<option value="custom">Custom</option>
</select>
<input type="text" name="customPath" placeholder="./your/yt-dlp/path/yt-dlp.exe" id="ytdlpCustomPath">
</div>
<!-- source and URL -->
<div class="areaName">
<h2>Source and URL</h2>
<p>Paste the URL of your song, and the tool will automatically select the source.</p>
</div>
<div class="sourcendurl">
<select name="source" id="source">
<option value="youtube">Youtube</option>
<option value="soundcloud">Soundcloud</option>
<option value="Other">Other</option>
</select>
<input type="url" name="url" placeholder="" id="url">
</div>
<div class="areaName"></div>
<div class="moreUrl">
<div class="moreUrlLists">
</div>
<button onclick="addNewUrl()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="lucide lucide-copy-plus-icon lucide-copy-plus">
<line x1="15" x2="15" y1="12" y2="18" />
<line x1="12" x2="18" y1="15" y2="15" />
<rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
</svg>
Add another URL
</button>
</div>
<!-- params -->
<div class="areaName"></div>
<div class="params" id="params">
<div class="title" id="paramsToggleMode">
<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="lucide lucide-settings-icon lucide-settings">
<path
d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" />
<circle cx="12" cy="12" r="3" />
</svg>
Advanced parameters
</h3>
<svg class="chevron" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-square-chevron-right-icon lucide-square-chevron-right">
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m10 8 4 4-4 4" />
</svg>
</div>
<hr class="sep">
<div class="paramsList" id="paramsList"></div>
</div>
<!-- output -->
<div class="areaName">
<h2>Command</h2>
<p>Copy the command and paste it in your terminal.</p>
</div>
<div class="outputCommand">
<input type="text" id="urlCopy" placeholder="Command output here..." readonly>
<button data-copy="urlCopy" title="Copy to clipboard" onclick="incrementTotalCommands()">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="lucide lucide-clipboard-copy-icon lucide-clipboard-copy">
<rect width="8" height="4" x="8" y="2" rx="1" ry="1" />
<path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2" />
<path d="M16 4h2a2 2 0 0 1 2 2v4" />
<path d="M21 14H11" />
<path d="m15 10-4 4 4 4" />
</svg>
</button>
<!-- <button id="btnSaveCommand" title="Save this command">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="lucide lucide-pin-icon lucide-pin">
<path d="M12 17v5" />
<path
d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" />
</svg>
</button> -->
</div>
</div>
<p class="sep mid">Or use a pre-generated command</p>
<div class="pregenCmd">
<div class="pregenCmd__item ffmpeg"
onclick="copyThisCustomCmd('youtube2mp3', this); incrementTotalCommands();">
<div class="icon">
<svg class="fill" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<title>YouTube</title>
<path
d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
</svg>
</div>
<div class="text">
<div class="badge">
<span>
FFMPEG
</span>
</div>
<p class="title">Youtube to mp3</p>
<p class="desc">Download a youtube video as mp3 for media player</p>
</div>
</div>
<div class="pregenCmd__item ffmpeg"
onclick="copyThisCustomCmd('soundcloud2mp3', this); incrementTotalCommands();">
<div class="icon">
<svg class="fill" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<title>SoundCloud</title>
<path
d="M23.999 14.165c-.052 1.796-1.612 3.169-3.4 3.169h-8.18a.68.68 0 0 1-.675-.683V7.862a.747.747 0 0 1 .452-.724s.75-.513 2.333-.513a5.364 5.364 0 0 1 2.763.755 5.433 5.433 0 0 1 2.57 3.54c.282-.08.574-.121.868-.12.884 0 1.73.358 2.347.992s.948 1.49.922 2.373ZM10.721 8.421c.247 2.98.427 5.697 0 8.672a.264.264 0 0 1-.53 0c-.395-2.946-.22-5.718 0-8.672a.264.264 0 0 1 .53 0ZM9.072 9.448c.285 2.659.37 4.986-.006 7.655a.277.277 0 0 1-.55 0c-.331-2.63-.256-5.02 0-7.655a.277.277 0 0 1 .556 0Zm-1.663-.257c.27 2.726.39 5.171 0 7.904a.266.266 0 0 1-.532 0c-.38-2.69-.257-5.21 0-7.904a.266.266 0 0 1 .532 0Zm-1.647.77a26.108 26.108 0 0 1-.008 7.147.272.272 0 0 1-.542 0 27.955 27.955 0 0 1 0-7.147.275.275 0 0 1 .55 0Zm-1.67 1.769c.421 1.865.228 3.5-.029 5.388a.257.257 0 0 1-.514 0c-.21-1.858-.398-3.549 0-5.389a.272.272 0 0 1 .543 0Zm-1.655-.273c.388 1.897.26 3.508-.01 5.412-.026.28-.514.283-.54 0-.244-1.878-.347-3.54-.01-5.412a.283.283 0 0 1 .56 0Zm-1.668.911c.4 1.268.257 2.292-.026 3.572a.257.257 0 0 1-.514 0c-.241-1.262-.354-2.312-.023-3.572a.283.283 0 0 1 .563 0Z" />
</svg>
</div>
<div class="text">
<div class="badge">
<span>
FFMPEG
</span>
</div>
<p class="title">SoundCloud to mp3</p>
<p class="desc">Download a soundcloud track as mp3 for media player</p>
</div>
</div>
</div>
<hr class="sep">
</main>
<footer>
<div>
<div class="stats">
<p>Created a total of <span id="totalCommands">0</span> commands</p>
</div>
<div class="askForHelp">
<p>We're building DlpCraft together! <a href="https://github.com/kerogs/dlpcraft" target="_blank">Help us!</a></p>
</div>
</div>
</footer>
</body>
<script type="module" src="assets/js/data.js"></script>
<script src="assets/js/composer.js"></script>
<script type="module" src="assets/js/copy.js"></script>
<script type="module" src="assets/js/themes.js"></script>
</html>