iptv-org/iptv · error · Error
File "${filepath}" does not exists
Error message
File "${filepath}" does not exists What it means
Error "File "${filepath}" does not exists" thrown in iptv-org/iptv.
Source
Thrown at scripts/commands/playlist/edit.ts:53
const resolvedPath = path.resolve(filepath)
const relative = path.relative(ROOT_DIR, resolvedPath)
if (relative.startsWith('..') || path.isAbsolute(relative)) {
console.error(`Error: filepath "${filepath}" is outside the working directory`)
process.exit(1)
}
const storage = new Storage()
let parsedStreams = new Collection<Stream>()
main(filepath)
nodeCleanup(() => {
save(filepath)
})
export default async function main(filepath: string) {
if (!(await storage.exists(filepath))) {
throw new Error(`File "${filepath}" does not exists`)
}
logger.info('loading data from api...')
await loadData()
logger.info('loading streams...')
const parser = new PlaylistParser({
storage
})
parsedStreams = await parser.parseFile(filepath)
const streamsWithoutId = parsedStreams.filter((stream: Stream) => !stream.tvgId)
logger.info(
`found ${parsedStreams.count()} streams (including ${streamsWithoutId.count()} without ID)`
)
logger.info('starting...\n')
View on GitHub (pinned to 897b7fe44b)
When it happens
Trigger: Thrown at scripts/commands/playlist/edit.ts:53 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of iptv-org/iptv@897b7fe44b (2026-08-12).
Data as JSON: /api/errors/278ae803f7dd8e18.
Report an issue: GitHub.