Bigger video thumbnails for feeds
This commit is contained in:
parent
b5c361089f
commit
5a2c0f0c99
1 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,9 @@
|
||||||
import * as express from 'express'
|
import * as express from 'express'
|
||||||
import * as Feed from 'pfeed'
|
import * as Feed from 'pfeed'
|
||||||
|
import { VideoFilter } from '../../shared/models/videos/video-query.type'
|
||||||
import { buildNSFWFilter } from '../helpers/express-utils'
|
import { buildNSFWFilter } from '../helpers/express-utils'
|
||||||
import { CONFIG } from '../initializers/config'
|
import { CONFIG } from '../initializers/config'
|
||||||
import { FEEDS, ROUTE_CACHE_LIFETIME, THUMBNAILS_SIZE, WEBSERVER } from '../initializers/constants'
|
import { FEEDS, PREVIEWS_SIZE, ROUTE_CACHE_LIFETIME, WEBSERVER } from '../initializers/constants'
|
||||||
import {
|
import {
|
||||||
asyncMiddleware,
|
asyncMiddleware,
|
||||||
commonVideosFiltersValidator,
|
commonVideosFiltersValidator,
|
||||||
|
@ -17,7 +18,6 @@ import {
|
||||||
import { cacheRoute } from '../middlewares/cache'
|
import { cacheRoute } from '../middlewares/cache'
|
||||||
import { VideoModel } from '../models/video/video'
|
import { VideoModel } from '../models/video/video'
|
||||||
import { VideoCommentModel } from '../models/video/video-comment'
|
import { VideoCommentModel } from '../models/video/video-comment'
|
||||||
import { VideoFilter } from '../../shared/models/videos/video-query.type'
|
|
||||||
|
|
||||||
const feedsRouter = express.Router()
|
const feedsRouter = express.Router()
|
||||||
|
|
||||||
|
@ -318,9 +318,9 @@ function addVideosToFeed (feed, videos: VideoModel[]) {
|
||||||
},
|
},
|
||||||
thumbnail: [
|
thumbnail: [
|
||||||
{
|
{
|
||||||
url: WEBSERVER.URL + video.getMiniatureStaticPath(),
|
url: WEBSERVER.URL + video.getPreviewStaticPath(),
|
||||||
height: THUMBNAILS_SIZE.height,
|
height: PREVIEWS_SIZE.height,
|
||||||
width: THUMBNAILS_SIZE.width
|
width: PREVIEWS_SIZE.width
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue