diff --git a/scripts/format.js b/scripts/format.js index a407d334fd..38673dd6bd 100644 --- a/scripts/format.js +++ b/scripts/format.js @@ -1,5 +1,4 @@ const { program } = require('commander') -const blacklist = require('./blacklist') const parser = require('./parser') const utils = require('./utils') const axios = require('axios') @@ -35,7 +34,6 @@ async function main() { for (const playlist of playlists) { await loadPlaylist(playlist.url) .then(sortChannels) - .then(filterChannels) .then(detectResolution) .then(savePlaylist) .then(done) @@ -67,16 +65,6 @@ async function sortChannels(playlist) { return playlist } -async function filterChannels(playlist) { - console.info(` Filtering channels...`) - const list = blacklist.map(i => i.toLowerCase()) - playlist.channels = playlist.channels.filter(i => { - return !list.includes(i.name.toLowerCase()) - }) - - return playlist -} - async function detectResolution(playlist) { if (!config.resolution) return playlist console.log(' Detecting resolution...')