This is my current (ugly) version:
Code: Select all
$PlaylistFile = readfile("<curitem>");
// Remove all unnecessary data
$CleanupPlaylist = regexreplace("$PlaylistFile", "^#.*$", "");
// Replace the separator
replace $CleanupPlaylist, $CleanupPlaylist, "<crlf>", "|";
// Target linebreaks
$Linebreaks = substr("$CleanupPlaylist", 0, 1);
// Remove all linebreaks
replace $UnsortedPlaylist, $CleanupPlaylist, "$Linebreaks", "";
XYplorer Beta Club