From 2dd1c4de8be0b2c924b551f814ecc0b6c8e3037a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 13 Feb 2022 01:35:37 +0300 Subject: [PATCH] Delete src_country.js --- scripts/store/setters/src_country.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 scripts/store/setters/src_country.js diff --git a/scripts/store/setters/src_country.js b/scripts/store/setters/src_country.js deleted file mode 100644 index 6eaa9d4d3..000000000 --- a/scripts/store/setters/src_country.js +++ /dev/null @@ -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 -}