Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Improve podcast feed compatibility

Chocobozzz57977df8952e
diff --git a/packages/tests/src/feeds/feeds.ts b/packages/tests/src/feeds/feeds.ts
index 51aa197509..cac3b7c7ed 100644
--- a/packages/tests/src/feeds/feeds.ts
+++ b/packages/tests/src/feeds/feeds.ts
@@ -351,9 +351,9 @@ describe('Test syndication feeds', () => {
expect(channel['itunes:author']).to.equal('PeerTube')
- expect(channel['itunes:image']['@_href']).to.exist
-
{
+ expect(channel['itunes:image']['@_href']).to.exist
+
const { body } = await makeRawRequest({ url: channel['itunes:image']['@_href'], expectedStatus: HttpStatusCode.OK_200 })
await testImageSize({ buffer: body, width: 1500, height: 1500 })
}
@@ -361,6 +361,13 @@ describe('Test syndication feeds', () => {
const item = xmlDoc.rss.channel.item
expect(item['itunes:duration']).to.equal(5)
+
+ {
+ expect(item['itunes:image']['@_href']).to.exist
+
+ const { body } = await makeRawRequest({ url: item['itunes:image']['@_href'], expectedStatus: HttpStatusCode.OK_200 })
+ await testImageSize({ buffer: body, width: 1400, height: 1400 })
+ }
})
it('Should have p20url podcast txt attribute with local podcast feed', async function () {
diff --git a/server/core/controllers/feeds/shared/video-feed-utils.ts b/server/core/controllers/feeds/shared/video-feed-utils.ts
index 392091c2f3..ffad21675f 100644
--- a/server/core/controllers/feeds/shared/video-feed-utils.ts
+++ b/server/core/controllers/feeds/shared/video-feed-utils.ts
@@ -59,7 +59,7 @@ export function getCommonVideoFeedAttributes (video: VideoModel) {
? [ { name: getCategoryLabel(video.category) } ]
: undefined,
- thumbnails: video.Thumbnails.map(t => ({
+ thumbnails: video.filterThumbnails('1:1').map(t => ({
url: WEBSERVER.URL + t.getFileStaticPath(),
width: t.width,
height: t.height