mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-07 04:21:29 +03:00
Updated create playlist dialog to not require a type to be set prior
- duration and registered variables are now set for playlists
This commit is contained in:
@@ -2382,13 +2382,16 @@ app.post('/api/createPlaylist', optionalJwt, async (req, res) => {
|
||||
let fileNames = req.body.fileNames;
|
||||
let type = req.body.type;
|
||||
let thumbnailURL = req.body.thumbnailURL;
|
||||
let duration = req.body.duration;
|
||||
|
||||
let new_playlist = {
|
||||
'name': playlistName,
|
||||
name: playlistName,
|
||||
fileNames: fileNames,
|
||||
id: shortid.generate(),
|
||||
thumbnailURL: thumbnailURL,
|
||||
type: type
|
||||
type: type,
|
||||
registered: Date.now(),
|
||||
duration: duration
|
||||
};
|
||||
|
||||
if (req.isAuthenticated()) {
|
||||
|
||||
Reference in New Issue
Block a user