]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/utils/videos/video-playlists.ts
Add/update/delete/list my playlists
[github/Chocobozzz/PeerTube.git] / shared / utils / videos / video-playlists.ts
index 4af52ec0fd76f6d6feb1201d67f2fc378e3063f9..b84b21623521cdea912a98722a03b18e79f95aef 100644 (file)
@@ -265,9 +265,21 @@ async function checkPlaylistFilesWereRemoved (
   }
 }
 
+function getVideoPlaylistPrivacies (url: string) {
+  const path = '/api/v1/video-playlists/privacies'
+
+  return makeGetRequest({
+    url,
+    path,
+    statusCodeExpected: 200
+  })
+}
+
 // ---------------------------------------------------------------------------
 
 export {
+  getVideoPlaylistPrivacies,
+
   getVideoPlaylistsList,
   getVideoChannelPlaylistsList,
   getAccountPlaylistsList,