diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-04-17 00:49:04 +0200 |
---|---|---|
committer | Rigel <sendmemail@rigelk.eu> | 2018-04-17 01:09:06 +0200 |
commit | 244e76a552ef05a5067134b1065d26dd89246d8c (patch) | |
tree | a15fcd52bce99797fc9366572fea62a7a44aaabe /client/src/app/account/account-videos | |
parent | c36d5a6b98056ef7fec3db43fbee880ee7332dcf (diff) | |
download | PeerTube-244e76a552ef05a5067134b1065d26dd89246d8c.tar.gz PeerTube-244e76a552ef05a5067134b1065d26dd89246d8c.tar.zst PeerTube-244e76a552ef05a5067134b1065d26dd89246d8c.zip |
feature: initial syndication feeds support
Provides rss 2.0, atom 1.0 and json 1.0 feeds for videos (instance and account-wide) on listings and video-watch views.
* still lacks redis caching
* still lacks lastBuildDate support
* still lacks channel-wide support
* still lacks semantic annotation (for licenses, NSFW warnings, etc.)
* still lacks love ( ˘ ³˘)
* RSS: has MRSS support for torrent lists!
* RSS: includes the first torrent in an enclosure
* JSON: lists all torrents in the 'attachments' object
* ATOM: lacking torrent listing support
Advances #23
Partial implementation for the accountId generation in the client, which will need a hotfix to add a way to get the proper account id.
Diffstat (limited to 'client/src/app/account/account-videos')
-rw-r--r-- | client/src/app/account/account-videos/account-videos.component.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/account/account-videos/account-videos.component.ts b/client/src/app/account/account-videos/account-videos.component.ts index 2664d59d8..b9a3bea3f 100644 --- a/client/src/app/account/account-videos/account-videos.component.ts +++ b/client/src/app/account/account-videos/account-videos.component.ts | |||
@@ -27,6 +27,8 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
27 | totalItems: null | 27 | totalItems: null |
28 | } | 28 | } |
29 | 29 | ||
30 | syndicationItems = {} | ||
31 | |||
30 | protected baseVideoWidth = -1 | 32 | protected baseVideoWidth = -1 |
31 | protected baseVideoHeight = 155 | 33 | protected baseVideoHeight = 155 |
32 | 34 | ||
@@ -61,6 +63,10 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
61 | return this.videoService.getMyVideos(newPagination, this.sort) | 63 | return this.videoService.getMyVideos(newPagination, this.sort) |
62 | } | 64 | } |
63 | 65 | ||
66 | generateSyndicationList () { | ||
67 | throw new Error('Method not implemented.') | ||
68 | } | ||
69 | |||
64 | async deleteSelectedVideos () { | 70 | async deleteSelectedVideos () { |
65 | const toDeleteVideosIds = Object.keys(this.checkedVideos) | 71 | const toDeleteVideosIds = Object.keys(this.checkedVideos) |
66 | .filter(k => this.checkedVideos[k] === true) | 72 | .filter(k => this.checkedVideos[k] === true) |