diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-17 10:35:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-17 10:35:08 +0200 |
commit | cc1561f9f7b33d739d66b23bacae23ea49f2fa12 (patch) | |
tree | 4ba9e905eaff4c80e9412b1ccf344c81c8c41ea8 /client/src/app/videos/video-list/video-recently-added.component.ts | |
parent | e6f627975bebd00d396d11442e582d80856bc6bd (diff) | |
download | PeerTube-cc1561f9f7b33d739d66b23bacae23ea49f2fa12.tar.gz PeerTube-cc1561f9f7b33d739d66b23bacae23ea49f2fa12.tar.zst PeerTube-cc1561f9f7b33d739d66b23bacae23ea49f2fa12.zip |
Simplify client syndications
Diffstat (limited to 'client/src/app/videos/video-list/video-recently-added.component.ts')
-rw-r--r-- | client/src/app/videos/video-list/video-recently-added.component.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/videos/video-list/video-recently-added.component.ts b/client/src/app/videos/video-list/video-recently-added.component.ts index 2bdc20d92..3b8108b00 100644 --- a/client/src/app/videos/video-list/video-recently-added.component.ts +++ b/client/src/app/videos/video-list/video-recently-added.component.ts | |||
@@ -29,6 +29,7 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On | |||
29 | 29 | ||
30 | ngOnInit () { | 30 | ngOnInit () { |
31 | super.ngOnInit() | 31 | super.ngOnInit() |
32 | |||
32 | this.generateSyndicationList() | 33 | this.generateSyndicationList() |
33 | } | 34 | } |
34 | 35 | ||
@@ -43,9 +44,6 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On | |||
43 | } | 44 | } |
44 | 45 | ||
45 | generateSyndicationList () { | 46 | generateSyndicationList () { |
46 | const feeds = this.videoService.getFeed('local') | 47 | this.syndicationItems = this.videoService.getVideoFeedUrls() |
47 | this.syndicationItems['rss 2.0'] = feeds[FeedFormat.RSS] | ||
48 | this.syndicationItems['atom 1.0'] = feeds[FeedFormat.ATOM] | ||
49 | this.syndicationItems['json 1.0'] = feeds[FeedFormat.JSON] | ||
50 | } | 48 | } |
51 | } | 49 | } |