mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Update editor.ts
This commit is contained in:
parent
2dafd22506
commit
c2c491fa66
1 changed files with 4 additions and 1 deletions
|
@ -147,7 +147,10 @@ async function getInput(channel: Channel) {
|
|||
|
||||
function getOptions(channelsIndex, channel: Channel) {
|
||||
const channelId = generateCode(channel.name, defaultCountry)
|
||||
const query = channel.name.replace(/\s(SD|TV|HD|SD\/HD|\(|\))$/i, '').replace(/\+/gi, '')
|
||||
const query = channel.name
|
||||
.replace(/\s(SD|TV|HD|SD\/HD|HDTV)$/i, '')
|
||||
.replace(/(\(|\)|,)/gi, '')
|
||||
.replace(/\+/gi, '')
|
||||
const similar = channelsIndex.search(query).map(item => new ApiChannel(item))
|
||||
|
||||
const variants = new Collection()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue