mirror of
https://github.com/iptv-org/database.git
synced 2024-11-22 02:44:10 -05:00
Update validate.js
This commit is contained in:
parent
86b085eaa7
commit
757ebe17c2
1 changed files with 3 additions and 3 deletions
|
@ -176,10 +176,10 @@ function validateChannelId(row, i) {
|
||||||
const errors = []
|
const errors = []
|
||||||
|
|
||||||
let name = normalize(row.name)
|
let name = normalize(row.name)
|
||||||
let code = row.country
|
let code = row.country.toLowerCase()
|
||||||
let expected = `${name}.${code}`.toLowerCase()
|
let expected = `${name}.${code}`
|
||||||
|
|
||||||
if (expected !== row.normId) {
|
if (expected !== row.id) {
|
||||||
errors.push({
|
errors.push({
|
||||||
line: i + 2,
|
line: i + 2,
|
||||||
message: `"${row.id}" must be derived from the channel name "${row.name}" and the country code "${row.country}"`
|
message: `"${row.id}" must be derived from the channel name "${row.name}" and the country code "${row.country}"`
|
||||||
|
|
Loading…
Reference in a new issue