mirror of
https://github.com/iptv-org/iptv
synced 2026-05-07 10:07:05 -04:00
Update validate.ts
This commit is contained in:
@@ -39,7 +39,7 @@ async function main() {
|
|||||||
const streams = await parser.parse(files)
|
const streams = await parser.parse(files)
|
||||||
const buffer = new Dictionary<Stream>()
|
const buffer = new Dictionary<Stream>()
|
||||||
streams.forEach((stream: Stream) => {
|
streams.forEach((stream: Stream) => {
|
||||||
if (!selectedFiles.includes(stream.filepath)) {
|
if (!stream.filepath || !selectedFiles.includes(stream.filepath)) {
|
||||||
buffer.set(stream.url, stream)
|
buffer.set(stream.url, stream)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -70,7 +70,7 @@ async function main() {
|
|||||||
log.add({
|
log.add({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
line: stream.getLine(),
|
line: stream.getLine(),
|
||||||
message: `"${stream.url}" is already in the "${origin.filepath}"`
|
message: `"${stream.url}" is already in the "${origin?.filepath}"`
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
buffer.set(stream.url, stream)
|
buffer.set(stream.url, stream)
|
||||||
|
|||||||
Reference in New Issue
Block a user