MMD Color/Colour Setting + Browser Files

Hi Torben,
Are you able to program the colour setting into the MMD info for each item ? Using an M3U playlist (from a scheduler), we’d be relying on most of the data in the meta file (in/out/fade) + hopefully, colour.

Browser - I have added the extension LNK in the config, hoping for mAirList to read Windows shortcut files, unfortunately, it doesn’t :frowning: - Our library system creates shortcuts of music into various subfolders (whilst the real audio is all in 1 folder). When I enter LNK, the Browser will show them - But the item produces an error in the playlist when loaded.

This would allow DJs to browse our playlist groups more effectively, not pick “random” songs from the A-Z browser view.

I think mAirList is almost ready to go on-air here now, and Torben will get a cookie for his dedicated work :wink:

The colors should already be saved by now. Take a look into the XML file, there should be a “#123456” line. If not, it’s a bug.

Regarding the shortcuts, mAirList doesn’t know how to handle them by now. I have found some example code in Google Groups, maybe I cat get it working.

For sending me the cookie, please find my postal address on the homepage :wink:

Torben

[FX: puts on programmer’s hat]

Charlie: a LNK file is Not a Nice Thing for programmers to deal with. You have to a) open the LNK file, b) decode its contents, and in this case c) check whether or not the Target File extension is one which your mAirList accepts or not, and finally d) check whether or not the Target File actually exists at the location specified.

This is all before you can load it into a Playlist or Browser; and this overhead will be needed for every LNK file. Plus, I assume you do know that LNK files are NOT updated by Windows when the associated Target File is moved to a new location and/or deleted?

PS: Do any other playout systems support Shortcuts to audio files, rather than the actual files? It’s not something I’ve ever tested (!), and I would be interested to know.

BFN
CAD

Exactly. It’s not a big deal to decode the LNK file (only takes a little overhead which will hardly be noticable on a fairly fast machine). This will most likely be done as soon as you drop the file into the playlist. However, mAirList does not know the actual file type then, but will just try to open the referenced file. So you have to make sure for yourself not to drop any link to a non-audio file into your playlist.

Charlie: Are these only links to file or also links to folders?

Torben

OK… The Colour thing is fine - I can’t think why it didn’t work before, but it’s OK now. The “metadata” option in the Config was ticked, as well…

LNK files: I know they are a bit of a pain. I know that they are not refreshed, but the library software does that for me :wink: I’ve managed to get one uploaded (did try to zip one but it brought the actual song)…
http://downloads.supplydj.com/index.php?dir=&file=Amy%20Winehouse%20-%20Rehab.mp3.lnk

Torben - They are just links to files. Station Playlist Creator supports these shortcuts (this is how we schedule). It’s not mission critical - But a “nice to have” as it would then enable DJs to browse via groups/categories.

Having found the sample code in Google Groups, implementing the link resolving for single files wasn’t a big deal. Will be included in v.47.

For folders, especially inside the browser, it’s a little complicated. It’d like to defer this until someone urgently needs it :wink:

Torben

It might be better to decode LNKs when the Browser Directory or Tree is populated, because you could display ‘invalid’ LNKs (e.g. to a folder or to a non-supported file type) differently in the list—like strikethrough or greyed out?—or just not add them to the list at all.

I presume that the Drop event code for Playlists and Players could also check the LNK content and also reject LNKs which point to folders or non-supported file types, preferably with a MessageBox like:

The shortcut you are dropping points to a folder. You can only drop shortcuts which point to supported file types.
or

The shortcut you are dropping points to a file type which is not supported. You can only drop shortcuts which point to supported file types.
as appropriate.

BFN
CAD

[quote=“Cad”]It might be better to decode LNKs when the Browser Directory or Tree is populated[/cad]

This is out of my scope. The directory browser is a 3rd-party component which I cannot change (only customize).

Apart from the filter in the directory browsers, mAirList does never check the extension of file, not even when dragging a non-linked file from Explorer into the playlist. This is because BASS.DLL might be able to open and play certain file types mAirList is not aware of, for example through plugins. BASS.DLL can also detect the type of a file if it has an incorrect file extensions. MP3 files will play play properly even if you name them .doc. So it’s not a good idea to block any file by its extension only because mAirList does not know about it. If BASS.DLL doesn’t like the file, the item will have the error flag set.

Torben