We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef554e3 commit 7e3a173Copy full SHA for 7e3a173
1 file changed
sinusbot.class.php
@@ -334,8 +334,16 @@ public function getPlaylists() {
334
public function createPlaylist($playlistName) {
335
return $this->request('/bot/playlists', 'POST', json_encode(array("name" => $playlistName)));
336
}
337
-
338
+
+/**
339
+ * importPlaylist
340
+ * @access public
341
+ * @param string $url youtube-dl URL
342
+ * @return array status
343
+ */
344
+ public function importPlaylist($url) {
345
+ return $this->request('/bot/playlists', 'POST', json_encode(array("importFrom" => $url)));
346
+ }
347
/**
348
* renamePlaylist
349
*
0 commit comments