mirror of
https://github.com/iptv-org/iptv
synced 2026-11-04 08:14:28 -05:00
Fixes "formatter doesn't fill tags" issue #4097
This commit is contained in:
1 parent
b7e28133af
commit
1c8c91450d
3 files changed
+11
-7
No files matched your search
@@ -15,10 +15,13 @@ parser.parseIndex = function () {
|
||||
parser.parsePlaylist = async function (url) {
|
||||
const content = file.read(url)
|
||||
const result = playlistParser.parse(content)
|
||||
const name = file.getFilename(url)
|
||||
const country = utils.code2name(name)
|
||||
const filename = file.getFilename(url)
|
||||
const country = {
|
||||
code: filename,
|
||||
name: utils.code2name(filename)
|
||||
}
|
||||
|
||||
return new Playlist({ header: result.header, items: result.items, url, country, name })
|
||||
return new Playlist({ header: result.header, items: result.items, url, filename, country })
|
||||
}
|
||||
|
||||
module.exports = parser
|
||||
Reference in new issue
Block a user