mirror of
https://github.com/iptv-org/epg
synced 2025-12-21 04:47:00 -05:00
.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { parseChannels } from 'epg-grabber'
|
||||
import { Storage } from '@freearhey/core'
|
||||
import { EPGGrabber } from 'epg-grabber'
|
||||
import { Storage } from '@freearhey/storage-js'
|
||||
import { ChannelList } from '../models'
|
||||
|
||||
interface ChannelsParserProps {
|
||||
@@ -15,7 +15,7 @@ export class ChannelsParser {
|
||||
|
||||
async parse(filepath: string): Promise<ChannelList> {
|
||||
const content = await this.storage.load(filepath)
|
||||
const parsed = parseChannels(content)
|
||||
const parsed = EPGGrabber.parseChannelsXML(content)
|
||||
|
||||
return new ChannelList({ channels: parsed })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user