aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-main/video/video.service.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/video/video.service.ts b/client/src/app/shared/shared-main/video/video.service.ts
index 152149827..78a49567f 100644
--- a/client/src/app/shared/shared-main/video/video.service.ts
+++ b/client/src/app/shared/shared-main/video/video.service.ts
@@ -54,6 +54,7 @@ export type CommonVideoParams = {
54export class VideoService { 54export class VideoService {
55 static BASE_VIDEO_URL = environment.apiUrl + '/api/v1/videos' 55 static BASE_VIDEO_URL = environment.apiUrl + '/api/v1/videos'
56 static BASE_FEEDS_URL = environment.apiUrl + '/feeds/videos.' 56 static BASE_FEEDS_URL = environment.apiUrl + '/feeds/videos.'
57 static PODCAST_FEEDS_URL = environment.apiUrl + '/feeds/podcast/videos.xml'
57 static BASE_SUBSCRIPTION_FEEDS_URL = environment.apiUrl + '/feeds/subscriptions.' 58 static BASE_SUBSCRIPTION_FEEDS_URL = environment.apiUrl + '/feeds/subscriptions.'
58 59
59 constructor ( 60 constructor (
@@ -266,7 +267,15 @@ export class VideoService {
266 let params = this.restService.addRestGetParams(new HttpParams()) 267 let params = this.restService.addRestGetParams(new HttpParams())
267 params = params.set('videoChannelId', videoChannelId.toString()) 268 params = params.set('videoChannelId', videoChannelId.toString())
268 269
269 return this.buildBaseFeedUrls(params) 270 const feedUrls = this.buildBaseFeedUrls(params)
271
272 feedUrls.push({
273 format: FeedFormat.RSS,
274 label: 'podcast rss 2.0',
275 url: VideoService.PODCAST_FEEDS_URL + `?videoChannelId=${videoChannelId}`
276 })
277
278 return feedUrls
270 } 279 }
271 280
272 getVideoSubscriptionFeedUrls (accountId: number, feedToken: string) { 281 getVideoSubscriptionFeedUrls (accountId: number, feedToken: string) {