Repository navigation
Expand file tree
/
Copy pathm3u8.html
More file actions
295 lines (270 loc) · 12.4 KB
/
Copy pathm3u8.html
File metadata and controls
295 lines (270 loc) · 12.4 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
295
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>titleM3U8</title>
<link rel="stylesheet" type="text/css" href="css/public.css" media="all" />
<link rel="stylesheet" type="text/css" href="css/options.css" media="all" />
<script src="lib/jquery.min.js"></script>
<script src="js/polyfill.js"></script>
<script src="js/init.js"></script>
<script src="lib/mux.min.js"></script>
<script src="js/function.js"></script>
<script src="js/templates.js"></script>
</head>
<body>
<div class="m3u8_wrapper wrapper1080">
<section id="loading">
<div class="optionBox" data-i18n="loading"></div>
</section>
<!-- 入口 自定义m3u8 -->
<section id="m3u8Custom" class="hide">
<h1 class="optionsTitle" data-i18n="titleM3U8"></h1>
<div class="optionBox">
<textarea id="m3u8Text" spellcheck="false" data-type="link" data-i18n-placeholder="m3u8Placeholder"
class="width100"></textarea>
<input type="text" id="baseUrl" placeholder="BaseURL" class="fullInput" />
<div class="line"></div>
<input type="text" id="referer" placeholder="Referer" class="fullInput" />
<button id="parse" type="button" data-i18n="parser"></button>
<input id="uploadM3U8" type="file" />
</div>
</section>
<!-- 多条资源m3u8选择界面 -->
<section id="more_m3u8" class="hide">
<h1 class="optionsTitle" data-i18n="selectVideo"></h1>
<span class="explain" data-i18n="nextLevelTip"></span>
<div class="optionBox">
<div id="next_m3u8"></div>
</div>
</section>
<section id="more_audio" class="hide">
<h1 class="optionsTitle" data-i18n="selectAudio"></h1>
<span class="explain" data-i18n="multipleAudiosTip"></span>
<div class="optionBox">
<div id="next_audio"></div>
</div>
</section>
<section id="more_subtitle" class="hide">
<h1 class="optionsTitle" data-i18n="multipleSubtitles"></h1>
<span class="explain" data-i18n="multipleSubtitlesTip"></span>
<div class="optionBox">
<div id="next_subtitle"></div>
</div>
</section>
<section id="more_options" class="hide">
<div class="optionBox">
<button id="more_options_merge" class="button2" data-i18n="onlineMerge"></button>
</div>
</section>
<!-- 解析结果界面 -->
<section id="m3u8" class="hide">
<h1 class="optionsTitle" data-i18n="titleM3U8"></h1>
<span class="explain" id="key"></span>
<div class="optionBox">
<!-- m3u8 url地址 -->
<div class="block">
<p data-i18n-outer="m3u8Url"></p>
<p><a id="m3u8_url"></a></p>
</div>
<!-- 提示窗口 -->
<div class="block" id="tips"></div>
<!-- 疑似密钥 -->
<div class="block hide" id="maybeKey">
<select class="m3u8Key select">
<option value="tips" data-i18n="possibleKey"></option>
</select>
<button id="searchingForRealKey" data-i18n="searchingForRealKey"></button>
</div>
<!-- 视频信息 -->
<div class="videoInfo flex">
<div id="count"></div>
<div id="info"></div>
<div id="estimateFileSize"></div>
<div id="estimateBitrate"></div>
</div>
<!-- 切片列表和部分操作按钮 可折叠 -->
<div class="block" id="textarea">
<details>
<!-- 折叠按钮 -->
<summary data-i18n="viewSlices" class="button"></summary>
<!-- m3u8原始内容 -->
<textarea id="m3u8Content" spellcheck="false" data-type="link" class="width100 hide"
data-i18n="loading"></textarea>
<!-- 切片列表 -->
<div id="mediaList" class="width100" data-i18n="loading"></div>
<!-- 下载列表 已弃用 -->
<div id="downList" data-i18n="waitDownload"></div>
<!-- 在线ffmpeg -->
<div class="iframeBox" id="iframeBox"></div>
<!-- 视频预览 -->
<video id="video" class="hide" controls></video>
<!-- 操作按钮 -->
<div class="merge">
<!-- 预览播放 -->
<button id="play" data-switch="on" data-i18n="play"></button>
<!-- 原始m3u8 -->
<button id="originalM3U8" data-i18n="originalM3u8"></button>
<!-- 切片列表 -->
<button id="getTs" data-i18n="segmentList"></button>
<!-- 在线ffmpeg -->
<button id="onlineFFmpeg" data-i18n="onlineFFmpeg"></button>
<!-- 调用 -->
<div class="dl-container">
<div class="m3u8Popup" id="openM3U8DLBox">
<div class="m3u8DL">
<button id="m3u8DL" class="button2" data-i18n="invokeM3u8DL"></button>
<button id="setM3u8dl" data-i18n="previewCommand"></button>
<label class="m3u8checkbox textColor">
<p data-i18n-outer="addSettingParameters"></p><input type="checkbox" id="addParam"
save="change" />
</label>
<button id="invoke" class="button2" data-i18n="invoke"></button>
</div>
<textarea id="m3u8dlArg" type="text" class="m3u8dlArg hide"></textarea>
</div>
<button id="openM3U8DL" class="button" data-i18n="invokeM3u8DL"></button>
</div>
<!-- 密钥 -->
<div class="dl-container">
<div class="m3u8Popup" id="openKeyBox">
<div class="customKey">
<input type="text" id="customKey" spellcheck="false" data-i18n-placeholder="customKeyPlaceholder"
size="60" />
<input type="text" id="customIV" spellcheck="false" placeholder="IV" size="30" />
<button id="uploadKey" data-i18n="uploadKey"></button>
<input id="uploadKeyFile" type="file" class="hide" />
</div>
</div>
<button id="openKey" class="button" data-i18n="key"></button>
</div>
<!-- 更多功能 -->
<div class="dl-container">
<div class="m3u8Popup" id="moreFeaturesBox">
<button id="downText" data-i18n="downloadSegmentList"></button>
<button id="tsAddArg" data-i18n="getParameters"></button>
<button id="setRequestHeaders" data-i18n="setRequestHeaders"></button>
<button id="sendFfmpeg" class="hide button" data-i18n="sendFfmpeg"></button>
<label class="inline-flex textColor">
<input type="checkbox" id="M3u8HideDownloadedSegments" save="change" />
<i18n>hideDownloadedSegments</i18n>
</label>
<p>
<input type="text" data-i18n-placeholder="regularFilterPlaceholder" id="regular"
class="m3u8Regular">
<button id="invertSelection" data-i18n="invertSelection"></button>
</p>
</div>
<button id="moreFeatures" data-i18n="moreFeatures"></button>
</div>
<!-- 下载范围 -->
<div class="rangeDown textColor">
<p data-i18n="downloadRange"></p>
<select id="cc" class="hide">
<option disabled selected hidden>playlist</option>
</select>
<div class="merge">
<input type="text" id="rangeStart" spellcheck="false" data-i18n-placeholder="start" value="1" />
<input type="text" id="rangeEnd" spellcheck="false" data-i18n-placeholder="end" />
</div>
<button id="rangeConfirm" data-i18n="confirm"></button>
</div>
</div>
</details>
</div>
<div class="line"></div>
<!-- 下载选项 和 按钮 -->
<div class="block" id="button">
<div class="merge" id="mergeDown">
<!-- 自定义文件名 -->
<input type="text" id="customFilename" spellcheck="false" data-i18n-placeholder="customSaveFileName"
size="30" list="name-options" />
<datalist id="name-options"></datalist>
<!-- 下载线程 -->
<div id="threadDiv" class="textColor">
<p data-i18n-outer="downloadThreads"></p> <input type="number" value="6" id="thread" spellcheck="false"
style="width: 35px;" step="1" min="1" max="256" save="change" />
</div>
<!-- 使用在线ffmpeg转码 -->
<label class="m3u8checkbox textColor">
<p data-i18n-outer="ffmpegTranscoding"></p><input type="checkbox" id="ffmpeg" save="change" />
</label>
<!-- 转为mp4格式 -->
<label class="m3u8checkbox textColor">
<p data-i18n-outer="mp4Format"></p><input type="checkbox" id="mp4" save="change" />
</label>
<!-- 边下边纯 -->
<label class="m3u8checkbox textColor firefoxHide">
<p data-i18n-outer="downloadWhileSaving"></p><input type="checkbox" id="StreamSaver" save="change" />
</label>
<!-- 边下边纯 测试新版 -->
<label class="m3u8checkbox textColor firefoxHide">
<i18n>downloadWhileSaving</i18n>
<i18n>test</i18n>
<input type="checkbox" id="StreamTest" save="change" />
</label>
<!-- 提取音频 -->
<label class="m3u8checkbox textColor">
<p data-i18n-outer="audioOnly"></p><input type="checkbox" id="onlyAudio" save="change" />
</label>
<!-- 另存为 -->
<label class="m3u8checkbox textColor">
<p data-i18n-outer="saveAs"></p><input type="checkbox" id="saveAs" save="change" />
</label>
<!-- 预处理 -->
<label class="m3u8checkbox textColor">
<p data-i18n-outer="dataPreprocessing"></p><input type="checkbox" id="dataPreprocessing" save="change" />
</label>
<!-- 跳过解密 -->
<div id="skipDecryptDiv" class="hide">
<label class="m3u8checkbox textColor">
<p data-i18n-outer="skipDecryption"></p><input type="checkbox" id="skipDecrypt" save="change" />
</label>
</div>
<!-- 下载完自动关闭页面 -->
<label class="m3u8checkbox textColor">
<p data-i18n-outer="autoClosePageAfterDownload"></p><input type="checkbox" id="autoClose" save="change" />
</label>
</div>
<!-- 下载进度提示 -->
<div class="merge">
<div class="m3u8Tips">
<div id="progress"></div>
<div id="fileSize"></div>
<div id="fileDuration"></div>
</div>
</div>
<!-- 下载按钮 -->
<div class="merge">
<!-- 合并下载 -->
<button id="mergeTs" class="button2 width100" data-i18n="mergeDownloads"></button>
<!-- 打开目录 -->
<button class="openDir hide" data-i18n="downloadDir"></button>
<!-- 全部重新下载 -->
<button id="errorDownload" class="hide button2" data-i18n="redownloadFailedItems"></button>
<!-- 强制下载已有数据 -->
<button id="ForceDownload" class="hide button2" data-i18n="downloadExistingData"></button>
<!-- 停止下载 -->
<button id="stopDownload" class="hide button2" data-i18n="stopDownload"></button>
<!-- 录制 -->
<button id="recorder" class="button2 hide" data-switch="on" data-switch="on"
data-i18n="recordLive"></button>
<!-- 重试次数 -->
<div class="textColor m3u8checkbox">
<p data-i18n-outer="retryCount"></p>(test) <input type="number" value="0" id="retryCount"
spellcheck="false" style="width: 35px;" step="1" min="0" />
</div>
</div>
</div>
</div>
</section>
</div>
<script src="lib/m3u8-decrypt.js"></script>
<script src="lib/hls.min.js"></script>
<script src="lib/base64.js"></script>
<script src="lib/StreamSaver.js"></script>
<script src="js/m3u8.downloader.js"></script>
<script src="js/m3u8.js"></script>
<script src="js/i18n.js"></script>
</body>
</html>