From 8213dcd6975c0750720364fed4a08e13a4c6463d Mon Sep 17 00:00:00 2001 From: freearhey Date: Sun, 8 Sep 2019 19:51:59 +0300 Subject: [PATCH] Moved skipPlaylist() to test/index.js --- helpers/util.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/helpers/util.js b/helpers/util.js index bd25a85a98..8187223e88 100644 --- a/helpers/util.js +++ b/helpers/util.js @@ -229,14 +229,6 @@ function validateUrl(channelUrl) { return blacklist.indexOf(host) === -1 } -function skipPlaylist(filename) { - let test_country = process.env.npm_config_country - if (test_country && filename !== 'channels/' + test_country + '.m3u') { - return true; - } - return false; -} - module.exports = { parsePlaylist, sortByTitleAndUrl, @@ -249,6 +241,5 @@ module.exports = { addToCache, checkCache, clearCache, - validateUrl, - skipPlaylist + validateUrl } \ No newline at end of file