{"record":{"id":"ed0ded2900e7b9f9","repo":"iptv-org/iptv","slug":"name-property-is-required","errorCode":null,"errorMessage":"\"name\" property is required","messagePattern":"\"name\" property is required","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"scripts/models/stream.ts","lineNumber":79,"sourceCode":"    function escapeRegExp(text) {\r\n      return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\r\n    }\r\n\r\n    function parseName(name: string): {\r\n      title: string\r\n      label: string\r\n      quality: string\r\n    } {\r\n      let title = name\r\n      const [, label] = title.match(/ \\[(.*)\\]$/) || [null, '']\r\n      title = title.replace(new RegExp(` \\\\[${escapeRegExp(label)}\\\\]$`), '')\r\n      const [, quality] = title.match(/ \\(([0-9]+[p|i])\\)$/) || [null, '']\r\n      title = title.replace(new RegExp(` \\\\(${quality}\\\\)$`), '')\r\n\r\n      return { title, label, quality }\r\n    }\r\n\r\n    if (!data.name) throw new Error('\"name\" property is required')\r\n    if (!data.url) throw new Error('\"url\" property is required')\r\n\r\n    const [channelId, feedId] = data.tvg.id.split('@')\r\n    const { title, label, quality } = parseName(data.name)\r\n\r\n    const stream = new Stream({\r\n      channel: channelId || null,\r\n      feed: feedId || null,\r\n      title: title,\r\n      quality: quality || null,\r\n      url: data.url,\r\n      referrer: data.http.referrer || null,\r\n      user_agent: data.http['user-agent'] || null,\r\n      label: label || null\r\n    })\r\n\r\n    stream.tvgId = data.tvg.id\r\n    stream.line = data.line\r","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/iptv-org/iptv/blob/897b7fe44be73c3731e3e4f7fb1efda0ee8fd318/scripts/models/stream.ts#L61-L97","documentation":"Error \"\"name\" property is required\" thrown in iptv-org/iptv.","triggerScenarios":"Thrown at scripts/models/stream.ts:79 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"897b7fe44be73c3731e3e4f7fb1efda0ee8fd318","analyzedAt":"2026-08-12T01:40:43.379Z","schemaVersion":2},"datasetVersion":"2026-08-12T08:17:17.861Z"}