if your .pls files look like
[playlist]
NumberOfEntries=2
File1=INXS - Disappear.mp3
File2=C:\music\The Kills - Satellite.mp3
{done} ill add basic support for file1 (portable) currently not supported by the script.
{done, 2} the script will check for missing items and report found if any. missing items are not listed on final list anymore.
this is the way to go:
Code: Select all
$cp = "<curpath>";
$d = readfile(<curitem>);
$flux = gettoken($d, "count", "<crlf>");
$ring = 3;
$list = "";
$miss = "";
WHILE ($ring <= $flux)
{
$play = gettoken($d, "$ring", "<crlf>");
IF ($play == "") { break; }
$split = gettoken($play, 2, "=");
$test = substr($split, 1, 1);
IF ($test == ":") { }
ELSEIF ($test != ":") { $split = "$cp\" . "$split"; }
$exists = exists($split);
IF ($exists == 1) { $list = "$list" . "$split|"; }
ELSEIF ($exists == 0) { $miss = "$miss" . "$split<crlf>"; }
$ring++;
}
IF ($miss == "") { }
IF ($miss != "") { text "item(s) found missing:<crlf>$miss", , , , w; }
open inputselect("Pick the file you want to play", $list);
you have interesting options but again: xyplorer wont do the way you want im afraid. experienced users to the rescue?
1. open with option - not doable with script command inputselect, lack of support to custom menus
2. save the search results as another m3u file. - its not a search result, its just reading the actual file. no further options im afraid.
3. move the selected files on to top or bottom - sounds interesting but not doable with script command inputselect
4. delete selected files - not doable with script command inputselect, lack of support to custom menus
5. how to include the inbuilt search feature of xyplorer with so many options. - ask support team or fill in a proper wish topic?
6. thumbnail bigger view option - ask support team or fill in a proper wish topic?
7. drag and drop of results into external applications - why not use the xyplorer regular list? perhaps a script to backup found music in such lists then do what you want from target backup folder?
8. send to option to external media players etc - not doable with script command inputselect, lack of support to custom menus
9.remove missing files etc - i can think on a script to check for existence of files then rewriting a new list. let me know if youre interested.