From cc1561f9f7b33d739d66b23bacae23ea49f2fa12 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Apr 2018 10:35:08 +0200 Subject: Simplify client syndications --- client/src/app/videos/video-list/video-trending.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'client/src/app/videos/video-list/video-trending.component.ts') diff --git a/client/src/app/videos/video-list/video-trending.component.ts b/client/src/app/videos/video-list/video-trending.component.ts index 905c75ab0..6358ef91f 100644 --- a/client/src/app/videos/video-list/video-trending.component.ts +++ b/client/src/app/videos/video-list/video-trending.component.ts @@ -6,8 +6,6 @@ import { AuthService } from '../../core/auth' import { AbstractVideoList } from '../../shared/video/abstract-video-list' import { SortField } from '../../shared/video/sort-field.type' import { VideoService } from '../../shared/video/video.service' -import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum' -import * as url from 'url' @Component({ selector: 'my-videos-trending', @@ -29,6 +27,7 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, ngOnInit () { super.ngOnInit() + this.generateSyndicationList() } @@ -42,9 +41,6 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, } generateSyndicationList () { - const feeds = this.videoService.getFeed('local') - this.syndicationItems['rss 2.0'] = feeds[FeedFormat.RSS] - this.syndicationItems['atom 1.0'] = feeds[FeedFormat.ATOM] - this.syndicationItems['json 1.0'] = feeds[FeedFormat.JSON] + this.syndicationItems = this.videoService.getVideoFeedUrls() } } -- cgit v1.2.3