diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-03 09:59:53 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-03 09:59:53 +0100 |
commit | d5d9c5b79edf613e97a752a3d59062fb42045275 (patch) | |
tree | 7722da4b54160084b1e9c2e06f7c836c5e241fef /client/src/app/+admin/overview/videos/video-list.component.ts | |
parent | 9814ea9f040e42b64c088584934950c2314e933e (diff) | |
download | PeerTube-d5d9c5b79edf613e97a752a3d59062fb42045275.tar.gz PeerTube-d5d9c5b79edf613e97a752a3d59062fb42045275.tar.zst PeerTube-d5d9c5b79edf613e97a752a3d59062fb42045275.zip |
Add ability to filter live videos
Diffstat (limited to 'client/src/app/+admin/overview/videos/video-list.component.ts')
-rw-r--r-- | client/src/app/+admin/overview/videos/video-list.component.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/+admin/overview/videos/video-list.component.ts b/client/src/app/+admin/overview/videos/video-list.component.ts index b0e476569..8a15e8426 100644 --- a/client/src/app/+admin/overview/videos/video-list.component.ts +++ b/client/src/app/+admin/overview/videos/video-list.component.ts | |||
@@ -108,7 +108,10 @@ export class VideoListComponent extends RestTable implements OnInit { | |||
108 | } | 108 | } |
109 | 109 | ||
110 | isHLS (video: Video) { | 110 | isHLS (video: Video) { |
111 | return video.streamingPlaylists.some(p => p.type === VideoStreamingPlaylistType.HLS) | 111 | const p = video.streamingPlaylists.find(p => p.type === VideoStreamingPlaylistType.HLS) |
112 | if (!p) return false | ||
113 | |||
114 | return p.files.length !== 0 | ||
112 | } | 115 | } |
113 | 116 | ||
114 | isWebTorrent (video: Video) { | 117 | isWebTorrent (video: Video) { |