mirror of
https://github.com/iptv-org/database.git
synced 2024-11-09 22:16:38 -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 = []
|
||||
|
||||
let name = normalize(row.name)
|
||||
let code = row.country
|
||||
let expected = `${name}.${code}`.toLowerCase()
|
||||
let code = row.country.toLowerCase()
|
||||
let expected = `${name}.${code}`
|
||||
|
||||
if (expected !== row.normId) {
|
||||
if (expected !== row.id) {
|
||||
errors.push({
|
||||
line: i + 2,
|
||||
message: `"${row.id}" must be derived from the channel name "${row.name}" and the country code "${row.country}"`
|
||||
|
|
Loading…
Reference in a new issue