diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ef08f6c077..4f5a5e2d84 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -168,6 +168,7 @@ http://example.com/stream.m3u8 - ... - `unsorted.m3u`: playlist with channels not yet sorted. - `scripts/` + - `data/`: data used in scripts. - `helpers/`: helper scripts used in GitHub Actions. - `filter.js`: used within GitHub Action to remove blacklisted channels from playlists. - `format.js`: used within GitHub Action to format channel descriptions. diff --git a/scripts/helpers/blacklist.json b/scripts/data/blacklist.json similarity index 100% rename from scripts/helpers/blacklist.json rename to scripts/data/blacklist.json diff --git a/scripts/helpers/categories.json b/scripts/data/categories.json similarity index 100% rename from scripts/helpers/categories.json rename to scripts/data/categories.json diff --git a/scripts/helpers/regions.json b/scripts/data/regions.json similarity index 100% rename from scripts/helpers/regions.json rename to scripts/data/regions.json diff --git a/scripts/filter.js b/scripts/filter.js index 04f6f26443..3efbc492e5 100644 --- a/scripts/filter.js +++ b/scripts/filter.js @@ -1,4 +1,4 @@ -const blacklist = require('./helpers/blacklist.json') +const blacklist = require('./data/blacklist.json') const parser = require('./helpers/parser') const log = require('./helpers/log') diff --git a/scripts/helpers/Channel.js b/scripts/helpers/Channel.js index 07d5c60bdf..e0740c8976 100644 --- a/scripts/helpers/Channel.js +++ b/scripts/helpers/Channel.js @@ -1,4 +1,4 @@ -const categories = require('./categories') +const categories = require('../data/categories') const utils = require('./utils') const file = require('./file') diff --git a/scripts/helpers/db.js b/scripts/helpers/db.js index 52f5370986..3354071c3d 100644 --- a/scripts/helpers/db.js +++ b/scripts/helpers/db.js @@ -1,4 +1,4 @@ -const categories = require('./categories') +const categories = require('../data/categories') const parser = require('./parser') const utils = require('./utils') diff --git a/scripts/helpers/utils.js b/scripts/helpers/utils.js index 3866ae4cae..277bae92f4 100644 --- a/scripts/helpers/utils.js +++ b/scripts/helpers/utils.js @@ -1,7 +1,7 @@ const transliteration = require('transliteration') const iso6393 = require('@freearhey/iso-639-3') -const categories = require('./categories') -const regions = require('./regions') +const categories = require('../data/categories') +const regions = require('../data/regions') const utils = {} const intlDisplayNames = new Intl.DisplayNames(['en'], {