Skip to content

Commit

Permalink
some schemes are always needed
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhiggs committed Dec 13, 2024
1 parent 0a454c6 commit 98b34da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,16 @@ export default function validator(options) {

if (options.urls && options.CSRfile == Default_SLEPR.file) options.CSRfile = Default_SLEPR.url;

let knownLanguages = LoadLanguages(options.urls);
let isoCountries = LoadCountries(options.urls);
let knownGenres = LoadGenres(options.urls);

if (!options.nosl || !options.nocg) {
let knownLanguages = LoadLanguages(options.urls);
let knownGenres = LoadGenres(options.urls);
let knownRatings = LoadRatings(options.urls);
let accessibilityPurposes = LoadAccessibilityPurpose(options.urls);
let audioPurposes = LoadAudioPurpose(options.urls);
let subtitleCodings = LoadSubtitleCodings(options.urls);
let subtitlePurposes = LoadSubtitlePurposes(options.urls);
let isoCountries = LoadCountries(options.urls);
let videoFormats = LoadVideoCodecCS(options.urls);
let audioFormats = LoadAudioCodecCS(options.urls);
let audioPresentation = LoadAudioPresentationCS(options.urls);
Expand Down Expand Up @@ -311,7 +312,6 @@ export default function validator(options) {
audiopres: audioPresentation,
});
}

if (!options.nosl) {
app.get("/validate_sl", function (req, res) {
validateServiceList(req, res, slcheck);
Expand Down

0 comments on commit 98b34da

Please sign in to comment.