From 045a439b82c1cea166b33dc3d1b53609080d4b15 Mon Sep 17 00:00:00 2001 From: stratumadev Date: Thu, 27 Nov 2025 22:32:52 +0100 Subject: [PATCH] fix(m3u8): invalid m3u8-parser import --- adn.ts | 6 +++--- crunchy.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/adn.ts b/adn.ts index 5f556db..fe3e2a3 100644 --- a/adn.ts +++ b/adn.ts @@ -7,7 +7,7 @@ import fs from 'fs'; import crypto from 'crypto'; // Plugins -import m3u8 from 'm3u8-parser'; +import { Parser } from 'm3u8-parser'; // Modules import * as fontsData from './modules/module.fontsData'; @@ -602,7 +602,7 @@ export default class AnimationDigitalNetwork implements ServiceClass { const streamPlaylistBody = await streamPlaylistsReq.res.text(); // Init parser - const parser = new m3u8.Parser(); + const parser = new Parser(); // Parse M3U8 parser.push(streamPlaylistBody); @@ -724,7 +724,7 @@ export default class AnimationDigitalNetwork implements ServiceClass { const chunkPageBody = await chunkPage.res.text(); // Init parser - const parser = new m3u8.Parser(); + const parser = new Parser(); // Parse M3U8 parser.push(chunkPageBody); diff --git a/crunchy.ts b/crunchy.ts index c6287ab..ddc1eb0 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -9,7 +9,7 @@ import packageJson from './package.json'; import { console } from './modules/log'; import streamdl, { M3U8Json } from './modules/hls-download'; import Helper from './modules/module.helper'; -import m3u8 from 'm3u8-parser'; +import { Parser } from 'm3u8-parser'; // custom modules import * as fontsData from './modules/module.fontsData'; @@ -2508,7 +2508,7 @@ export default class Crunchy implements ServiceClass { } } else if (!options.novids) { // Init parser - const parser = new m3u8.Parser(); + const parser = new Parser(); // Parse M3U8 parser.push(vstreamPlaylistBody); @@ -2650,7 +2650,7 @@ export default class Crunchy implements ServiceClass { const chunkPageBody = await chunkPage.res.text(); // Init parser - const parser = new m3u8.Parser(); + const parser = new Parser(); // Parse M3U8 parser.push(chunkPageBody);