diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-26 09:39:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-26 09:39:41 +0200 |
commit | 39ba2e8e3a71961cd0087c57d25905f6a97a6b69 (patch) | |
tree | d97d835d1448af796370dc7fe361af5f72582e41 /client/src/app/shared/video | |
parent | a71de50bbc63a3d1d977abf8ad5e154a632a2d71 (diff) | |
download | PeerTube-39ba2e8e3a71961cd0087c57d25905f6a97a6b69.tar.gz PeerTube-39ba2e8e3a71961cd0087c57d25905f6a97a6b69.tar.zst PeerTube-39ba2e8e3a71961cd0087c57d25905f6a97a6b69.zip |
Add RSS feed to subscribe button
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/video.service.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts index 4a78d70ea..2255a18a2 100644 --- a/client/src/app/shared/video/video.service.ts +++ b/client/src/app/shared/video/video.service.ts | |||
@@ -28,7 +28,7 @@ import { Account } from '@app/shared/account/account.model' | |||
28 | import { AccountService } from '@app/shared/account/account.service' | 28 | import { AccountService } from '@app/shared/account/account.service' |
29 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 29 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
30 | import { ServerService } from '@app/core' | 30 | import { ServerService } from '@app/core' |
31 | import { UserSubscriptionService } from '@app/shared/user-subscription' | 31 | import { UserSubscriptionService } from '@app/shared/user-subscription/user-subscription.service' |
32 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 32 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' |
33 | import { I18n } from '@ngx-translate/i18n-polyfill' | 33 | import { I18n } from '@ngx-translate/i18n-polyfill' |
34 | 34 | ||
@@ -210,14 +210,17 @@ export class VideoService implements VideosProvider { | |||
210 | buildBaseFeedUrls (params: HttpParams) { | 210 | buildBaseFeedUrls (params: HttpParams) { |
211 | const feeds = [ | 211 | const feeds = [ |
212 | { | 212 | { |
213 | format: FeedFormat.RSS, | ||
213 | label: 'rss 2.0', | 214 | label: 'rss 2.0', |
214 | url: VideoService.BASE_FEEDS_URL + FeedFormat.RSS.toLowerCase() | 215 | url: VideoService.BASE_FEEDS_URL + FeedFormat.RSS.toLowerCase() |
215 | }, | 216 | }, |
216 | { | 217 | { |
218 | format: FeedFormat.ATOM, | ||
217 | label: 'atom 1.0', | 219 | label: 'atom 1.0', |
218 | url: VideoService.BASE_FEEDS_URL + FeedFormat.ATOM.toLowerCase() | 220 | url: VideoService.BASE_FEEDS_URL + FeedFormat.ATOM.toLowerCase() |
219 | }, | 221 | }, |
220 | { | 222 | { |
223 | format: FeedFormat.JSON, | ||
221 | label: 'json 1.0', | 224 | label: 'json 1.0', |
222 | url: VideoService.BASE_FEEDS_URL + FeedFormat.JSON.toLowerCase() | 225 | url: VideoService.BASE_FEEDS_URL + FeedFormat.JSON.toLowerCase() |
223 | } | 226 | } |