1
0
Fork 0
This commit is contained in:
Chocobozzz 2023-07-26 10:08:24 +02:00
parent 053ed7f5e6
commit d7c3670945
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 6 additions and 9 deletions

View file

@ -8,7 +8,7 @@ import {
feedsFormatValidator,
setFeedFormatContentType,
videoCommentsFeedsValidator,
videoFeedsValidator
feedsAccountOrChannelFiltersValidator
} from '../../middlewares'
import { VideoCommentModel } from '../../models/video/video-comment'
import { buildFeedMetadata, initFeed, sendFeed } from './shared'
@ -27,7 +27,7 @@ commentFeedsRouter.get('/video-comments.:format',
feedsFormatValidator,
setFeedFormatContentType,
cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS),
asyncMiddleware(videoFeedsValidator),
asyncMiddleware(feedsAccountOrChannelFiltersValidator),
asyncMiddleware(videoCommentsFeedsValidator),
asyncMiddleware(generateVideoCommentsFeed)
)

View file

@ -12,7 +12,7 @@ import {
feedsFormatValidator,
setDefaultVideosSort,
setFeedFormatContentType,
videoFeedsValidator,
feedsAccountOrChannelFiltersValidator,
videosSortValidator,
videoSubscriptionFeedsValidator
} from '../../middlewares'
@ -33,7 +33,7 @@ videoFeedsRouter.get('/videos.:format',
setFeedFormatContentType,
cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS),
commonVideosFiltersValidator,
asyncMiddleware(videoFeedsValidator),
asyncMiddleware(feedsAccountOrChannelFiltersValidator),
asyncMiddleware(generateVideoFeed)
)

View file

@ -107,10 +107,7 @@ async function processGenerateStoryboard (job: Job): Promise<void> {
}
})
})
})
} finally {
inputFileMutexReleaser()
}

View file

@ -73,7 +73,7 @@ function feedContentTypeResponse (
// ---------------------------------------------------------------------------
const videoFeedsValidator = [
const feedsAccountOrChannelFiltersValidator = [
query('accountId')
.optional()
.custom(isIdValid),
@ -170,7 +170,7 @@ export {
feedsFormatValidator,
setFeedFormatContentType,
setFeedPodcastContentType,
videoFeedsValidator,
feedsAccountOrChannelFiltersValidator,
videoFeedsPodcastValidator,
videoSubscriptionFeedsValidator,
videoFeedsPodcastSetCacheKey,