wip
This commit is contained in:
parent
14a59c1f98
commit
3c5ea29926
|
@ -83,8 +83,9 @@ async function main() {
|
||||||
for(let channelId in buffer[epgUrl].channels) {
|
for(let channelId in buffer[epgUrl].channels) {
|
||||||
let c = buffer[epgUrl].channels[channelId]
|
let c = buffer[epgUrl].channels[channelId]
|
||||||
for(let epgName of c.names) {
|
for(let epgName of c.names) {
|
||||||
|
channelTitle = channel.title.replace(/(fhd|hd|sd|高清)$/i, '').trim()
|
||||||
let regexp = new RegExp(`^${epgName}$`, 'i')
|
let regexp = new RegExp(`^${epgName}$`, 'i')
|
||||||
if(regexp.test(channel.title)) {
|
if(regexp.test(channelTitle)) {
|
||||||
if(!channel.id) {
|
if(!channel.id) {
|
||||||
channel.id = c.id
|
channel.id = c.id
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue