Fix inadvertent code reversions

This commit is contained in:
Xaekai 2022-09-18 19:45:41 -07:00
parent 50e2692896
commit a81bccb228
1 changed files with 0 additions and 8 deletions

View File

@ -31,10 +31,6 @@ const SOURCE_CONTENT_TYPES = new Set([
'video/webm' 'video/webm'
]); ]);
const LIVE_ONLY_CONTENT_TYPES = new Set([
'application/dash+xml'
]);
const AUDIO_ONLY_CONTENT_TYPES = new Set([ const AUDIO_ONLY_CONTENT_TYPES = new Set([
'audio/aac', 'audio/aac',
'audio/mp4', 'audio/mp4',
@ -202,10 +198,6 @@ function validateSources(sources, data) {
`unacceptable source contentType "${source.contentType}"` `unacceptable source contentType "${source.contentType}"`
); );
if (LIVE_ONLY_CONTENT_TYPES.has(source.contentType) && !data.live)
throw new ValidationError(
`contentType "${source.contentType}" requires live: true`
);
// TODO (Xaekai): This should be allowed // TODO (Xaekai): This should be allowed
if (/*!AUDIO_ONLY_CONTENT_TYPES.has(source.contentType) && */!SOURCE_QUALITIES.has(source.quality)) if (/*!AUDIO_ONLY_CONTENT_TYPES.has(source.contentType) && */!SOURCE_QUALITIES.has(source.quality))
throw new ValidationError(`unacceptable source quality "${source.quality}"`); throw new ValidationError(`unacceptable source quality "${source.quality}"`);