mirror of https://github.com/Chocobozzz/PeerTube
(feed) adding thumbnail support for RSS feed
parent
52d9f792b3
commit
b81eb8fdc6
|
@ -108,7 +108,7 @@
|
||||||
"parse-torrent": "^6.0.0",
|
"parse-torrent": "^6.0.0",
|
||||||
"password-generator": "^2.0.2",
|
"password-generator": "^2.0.2",
|
||||||
"pem": "^1.12.3",
|
"pem": "^1.12.3",
|
||||||
"pfeed": "^1.1.5",
|
"pfeed": "^1.1.6",
|
||||||
"pg": "^7.4.1",
|
"pg": "^7.4.1",
|
||||||
"pg-hstore": "^2.3.2",
|
"pg-hstore": "^2.3.2",
|
||||||
"redis": "^2.8.0",
|
"redis": "^2.8.0",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import * as express from 'express'
|
import * as express from 'express'
|
||||||
import { CONFIG, FEEDS, ROUTE_CACHE_LIFETIME } from '../initializers/constants'
|
import { CONFIG, FEEDS, ROUTE_CACHE_LIFETIME } from '../initializers/constants'
|
||||||
|
import { THUMBNAILS_SIZE } from '../initializers'
|
||||||
import { asyncMiddleware, setDefaultSort, videoCommentsFeedsValidator, videoFeedsValidator, videosSortValidator } from '../middlewares'
|
import { asyncMiddleware, setDefaultSort, videoCommentsFeedsValidator, videoFeedsValidator, videosSortValidator } from '../middlewares'
|
||||||
import { VideoModel } from '../models/video/video'
|
import { VideoModel } from '../models/video/video'
|
||||||
import * as Feed from 'pfeed'
|
import * as Feed from 'pfeed'
|
||||||
|
@ -125,7 +126,14 @@ async function generateVideoFeed (req: express.Request, res: express.Response, n
|
||||||
date: video.publishedAt,
|
date: video.publishedAt,
|
||||||
language: video.language,
|
language: video.language,
|
||||||
nsfw: video.nsfw,
|
nsfw: video.nsfw,
|
||||||
torrent: torrents
|
torrent: torrents,
|
||||||
|
thumbnail: [
|
||||||
|
{
|
||||||
|
url: CONFIG.WEBSERVER.URL + video.getThumbnailPath(),
|
||||||
|
height: THUMBNAILS_SIZE.height,
|
||||||
|
width: THUMBNAILS_SIZE.width
|
||||||
|
}
|
||||||
|
]
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -5426,9 +5426,9 @@ performance-now@^2.1.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
|
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
|
||||||
|
|
||||||
pfeed@^1.1.5:
|
pfeed@^1.1.6:
|
||||||
version "1.1.5"
|
version "1.1.6"
|
||||||
resolved "https://registry.yarnpkg.com/pfeed/-/pfeed-1.1.5.tgz#6d0ab54209c60b45de03a15efaab7be867a3f71a"
|
resolved "https://registry.yarnpkg.com/pfeed/-/pfeed-1.1.6.tgz#0de2a1c40b116fa236227237fa264c7956c185e8"
|
||||||
dependencies:
|
dependencies:
|
||||||
xml "^1.0.1"
|
xml "^1.0.1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue