Moved skipPlaylist() to test/index.js
This commit is contained in:
parent
c7976d6b8c
commit
8213dcd697
@ -229,14 +229,6 @@ function validateUrl(channelUrl) {
|
|||||||
return blacklist.indexOf(host) === -1
|
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 = {
|
module.exports = {
|
||||||
parsePlaylist,
|
parsePlaylist,
|
||||||
sortByTitleAndUrl,
|
sortByTitleAndUrl,
|
||||||
@ -249,6 +241,5 @@ module.exports = {
|
|||||||
addToCache,
|
addToCache,
|
||||||
checkCache,
|
checkCache,
|
||||||
clearCache,
|
clearCache,
|
||||||
validateUrl,
|
validateUrl
|
||||||
skipPlaylist
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user