mirror of
https://github.com/iptv-org/iptv.git
synced 2024-09-05 00:01:35 +02:00
Remove duplicates from log
This commit is contained in:
parent
0920ccb1cf
commit
e0f6c38d81
@ -34,7 +34,11 @@ async function test() {
|
|||||||
parallel: 1,
|
parallel: 1,
|
||||||
itemCallback: item => {
|
itemCallback: item => {
|
||||||
stats.channels++
|
stats.channels++
|
||||||
if (!item.status.ok && item.status.reason !== 'Timed out') {
|
if (
|
||||||
|
!item.status.ok &&
|
||||||
|
item.status.reason !== 'Timed out' &&
|
||||||
|
item.status.reason !== 'Duplicate'
|
||||||
|
) {
|
||||||
stats.failures++
|
stats.failures++
|
||||||
|
|
||||||
helper.writeToLog(country.url, item.status.reason, item.url)
|
helper.writeToLog(country.url, item.status.reason, item.url)
|
||||||
|
Loading…
Reference in New Issue
Block a user