This commit is contained in:
parent
ffd23120fa
commit
710ce264f8
3 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name M3U8 HLS Downloader
|
// @name M3U8 HLS Downloader
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 1.0.7
|
// @version 1.0.8
|
||||||
// @description 자동 탐지 및 다운로드: HLS(m3u8) 스트림의 세그먼트를 병합하여 단일 파일로 저장. 활성화된 동안 모든 트래픽을 모니터링하고 접근하기 때문에, 사용하지 않을때는 비활성화 필요.
|
// @description 자동 탐지 및 다운로드: HLS(m3u8) 스트림의 세그먼트를 병합하여 단일 파일로 저장. 활성화된 동안 모든 트래픽을 모니터링하고 접근하기 때문에, 사용하지 않을때는 비활성화 필요.
|
||||||
// @author kyush
|
// @author kyush
|
||||||
// @match *://*/*
|
// @match *://*/*
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "m3u8-monkey-script",
|
"name": "m3u8-monkey-script",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ export function guessFilename(url: string, mime?: string): string {
|
||||||
function extractTitleParts(): { name: string; volume: string } | null {
|
function extractTitleParts(): { name: string; volume: string } | null {
|
||||||
try {
|
try {
|
||||||
const title = document.title || '';
|
const title = document.title || '';
|
||||||
const match = title.match(/^(.+?)\s+😜\s+(\d+)\s+-\s+Ani\s+-\s+Linkkf/);
|
const match = title.match(/^(.+?)\s+😜\s+(\d+)\s+-\s+Ani\S+\s+-\s+Linkkf/);
|
||||||
if (match) {
|
if (match) {
|
||||||
return { name: match[1].trim(), volume: match[2].trim() };
|
return { name: match[1].trim(), volume: match[2].trim() };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue