diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-03 11:32:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-03 11:32:41 +0100 |
commit | d324756edb836672f12284cd18e642a658b273d8 (patch) | |
tree | 3b323682bd7380491ad904daaeaea10be606e0f9 /client/src/app/+admin/overview/videos/video-admin.service.ts | |
parent | d5d9c5b79edf613e97a752a3d59062fb42045275 (diff) | |
download | PeerTube-d324756edb836672f12284cd18e642a658b273d8.tar.gz PeerTube-d324756edb836672f12284cd18e642a658b273d8.tar.zst PeerTube-d324756edb836672f12284cd18e642a658b273d8.zip |
Add ability to filter by file type
Diffstat (limited to 'client/src/app/+admin/overview/videos/video-admin.service.ts')
-rw-r--r-- | client/src/app/+admin/overview/videos/video-admin.service.ts | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/client/src/app/+admin/overview/videos/video-admin.service.ts b/client/src/app/+admin/overview/videos/video-admin.service.ts index d0854a2dc..b90fe22d8 100644 --- a/client/src/app/+admin/overview/videos/video-admin.service.ts +++ b/client/src/app/+admin/overview/videos/video-admin.service.ts | |||
@@ -45,11 +45,33 @@ export class VideoAdminService { | |||
45 | children: [ | 45 | children: [ |
46 | { | 46 | { |
47 | queryParams: { search: 'isLive:false' }, | 47 | queryParams: { search: 'isLive:false' }, |
48 | label: $localize`VOD videos` | 48 | label: $localize`VOD` |
49 | }, | 49 | }, |
50 | { | 50 | { |
51 | queryParams: { search: 'isLive:true' }, | 51 | queryParams: { search: 'isLive:true' }, |
52 | label: $localize`Live videos` | 52 | label: $localize`Live` |
53 | } | ||
54 | ] | ||
55 | }, | ||
56 | |||
57 | { | ||
58 | title: $localize`Video files`, | ||
59 | children: [ | ||
60 | { | ||
61 | queryParams: { search: 'webtorrent:true' }, | ||
62 | label: $localize`With WebTorrent` | ||
63 | }, | ||
64 | { | ||
65 | queryParams: { search: 'webtorrent:false' }, | ||
66 | label: $localize`Without WebTorrent` | ||
67 | }, | ||
68 | { | ||
69 | queryParams: { search: 'hls:true' }, | ||
70 | label: $localize`With HLS` | ||
71 | }, | ||
72 | { | ||
73 | queryParams: { search: 'hls:false' }, | ||
74 | label: $localize`Without HLS` | ||
53 | } | 75 | } |
54 | ] | 76 | ] |
55 | }, | 77 | }, |
@@ -69,7 +91,7 @@ export class VideoAdminService { | |||
69 | }, | 91 | }, |
70 | 92 | ||
71 | { | 93 | { |
72 | title: $localize`Include/Exclude`, | 94 | title: $localize`Exclude`, |
73 | children: [ | 95 | children: [ |
74 | { | 96 | { |
75 | queryParams: { search: 'excludeMuted' }, | 97 | queryParams: { search: 'excludeMuted' }, |
@@ -94,6 +116,14 @@ export class VideoAdminService { | |||
94 | prefix: 'isLocal:', | 116 | prefix: 'isLocal:', |
95 | isBoolean: true | 117 | isBoolean: true |
96 | }, | 118 | }, |
119 | hasHLSFiles: { | ||
120 | prefix: 'hls:', | ||
121 | isBoolean: true | ||
122 | }, | ||
123 | hasWebtorrentFiles: { | ||
124 | prefix: 'webtorrent:', | ||
125 | isBoolean: true | ||
126 | }, | ||
97 | isLive: { | 127 | isLive: { |
98 | prefix: 'isLive:', | 128 | prefix: 'isLive:', |
99 | isBoolean: true | 129 | isBoolean: true |