mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-12 18:10:06 -04:00
Update store.js
This commit is contained in:
parent
0677df2c33
commit
22f3627078
1 changed files with 20 additions and 2 deletions
22
src/store.js
22
src/store.js
|
@ -53,14 +53,32 @@ export async function fetchChannels() {
|
||||||
c.is = c.closed || c.replaced_by ? 'closed' : 'active'
|
c.is = c.closed || c.replaced_by ? 'closed' : 'active'
|
||||||
c.streams = c._streams.length
|
c.streams = c._streams.length
|
||||||
c.guides = c._guides.length
|
c.guides = c._guides.length
|
||||||
// c._searchable = generateSearchable(c)
|
|
||||||
|
|
||||||
return c
|
return c
|
||||||
})
|
})
|
||||||
|
|
||||||
channels.set(_channels)
|
channels.set(_channels)
|
||||||
filteredChannels.set(_channels)
|
filteredChannels.set(_channels)
|
||||||
searchIndex = sj.createIndex(_channels)
|
searchIndex = sj.createIndex(_channels, {
|
||||||
|
searchable: [
|
||||||
|
'id',
|
||||||
|
'name',
|
||||||
|
'alt_names',
|
||||||
|
'network',
|
||||||
|
'country',
|
||||||
|
'subdivision',
|
||||||
|
'city',
|
||||||
|
'broadcast_area',
|
||||||
|
'languages',
|
||||||
|
'categories',
|
||||||
|
'launched',
|
||||||
|
'closed',
|
||||||
|
'replaced_by',
|
||||||
|
'streams',
|
||||||
|
'guides',
|
||||||
|
'is'
|
||||||
|
]
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setSearchParam(key, value) {
|
export function setSearchParam(key, value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue