mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update mewatch.sg.config.js
This commit is contained in:
parent
04f3d11e9c
commit
d44e445c32
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@ function parseStop(item) {
|
|||
function parseRating(info) {
|
||||
const classification = info.classification
|
||||
if (classification && classification.code) {
|
||||
const [system, value] = classification.code.split('-')
|
||||
const [_, system, value] = classification.code.match(/^([A-Z]+)\-([A-Z0-9]+)/) || [
|
||||
null,
|
||||
null,
|
||||
null
|
||||
]
|
||||
|
||||
return { system, value }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue