mirror of
https://github.com/iptv-org/iptv
synced 2026-03-22 03:41:39 -04:00
Install @freearhey/core
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Collection, Storage } from '@freearhey/core'
|
||||
import parser from 'iptv-playlist-parser'
|
||||
import { Stream } from '../models'
|
||||
import { Collection, Storage } from './'
|
||||
import path from 'path'
|
||||
import { STREAMS_DIR } from '../constants'
|
||||
|
||||
@@ -26,7 +26,7 @@ export class PlaylistParser {
|
||||
async parseFile(filepath: string): Promise<Collection> {
|
||||
const streams = new Collection()
|
||||
|
||||
const content = await this.storage.read(filepath)
|
||||
const content = await this.storage.load(filepath)
|
||||
const parsed: parser.Playlist = parser.parse(content)
|
||||
|
||||
parsed.items.forEach((item: parser.PlaylistItem) => {
|
||||
|
||||
Reference in New Issue
Block a user