fix: fallback to filename as playlist name when importing

This commit is contained in:
Bnyro 2025-01-07 13:19:33 +01:00
parent 4f1c8e514c
commit c2fa0045ad

View File

@ -209,7 +209,7 @@ export default {
}
const playlist = {
name: playlistName ?? new Date().toJSON(),
name: playlistName ?? file.name.replace(".csv", ""),
videos: lines
.slice(videoListStartIndex, lines.length)
.filter(line => line != "")