mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 18:37:17 -05:00
Delete src_country.js
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
const { file } = require('../../core')
|
|
||||||
const countries = require('../../data/countries')
|
|
||||||
|
|
||||||
module.exports = function ({ filepath }) {
|
|
||||||
if (filepath) {
|
|
||||||
const basename = file.basename(filepath)
|
|
||||||
const [_, code] = basename.match(/([a-z]{2})(|_.*)\.m3u/i) || [null, null]
|
|
||||||
|
|
||||||
return code ? countries[code.toUpperCase()] : null
|
|
||||||
}
|
|
||||||
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user