]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/overview/videos/video-admin.service.ts
Add ability to filter live videos
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / overview / videos / video-admin.service.ts
index 696609cb213b33b25e183d94f01d33e5f5097b1f..d0854a2dc30b62e253c47aeb67e1c83468a42828 100644 (file)
@@ -40,6 +40,20 @@ export class VideoAdminService {
 
   buildAdminInputFilter (): AdvancedInputFilter[] {
     return [
+      {
+        title: $localize`Video type`,
+        children: [
+          {
+            queryParams: { search: 'isLive:false' },
+            label: $localize`VOD videos`
+          },
+          {
+            queryParams: { search: 'isLive:true' },
+            label: $localize`Live videos`
+          }
+        ]
+      },
+
       {
         title: $localize`Videos scope`,
         children: [
@@ -80,6 +94,10 @@ export class VideoAdminService {
         prefix: 'isLocal:',
         isBoolean: true
       },
+      isLive: {
+        prefix: 'isLive:',
+        isBoolean: true
+      },
       excludeMuted: {
         prefix: 'excludeMuted',
         handler: () => true