alias Removefle {
var %fle = 1
while (%fle <= $line(@filelist,N)) {
if (.avi isin $line(@filelist,%fle)) { dline @filelist %fle }
inc %fle
}
}
It kind of works, but when theres a load of files it doesn't remove them all so i have to run it again, and sometimes it'll remove files without the .avi extension in
alias RemoveM3u {
var %m3u = $line(@filelist,N)
while (%m3u != 0) {
if (.mp3 !isin $line(@filelist,%m3u)) || (.ogg !isin $line(@filelist,%m3u)) { dline @filelist %m3u | did -d player 8 %m3u }
dec %m3u
}
}