Is it possible for the mAirList playlist to retrieve Artist and Title details from the filename structure ? ie: Artist - Title.wav … I ask because one of my systems uses linear (WAV) filenames and we don’t use any tagging formats like CartChunk.
Not quite sure how I can handle WAV files without faffing about with one of these databases… WAVs show up as Artist - Title.wav which isn’t really helpful. Could mAirList treat a filename as Artist - Title.mp3/wav unless there’s an ID3 tag, in which case that is used… ?
Again, very custom, and we’d rather make this configurable. (For example, at eldoradio*, we have two hyphens between artist and title.)
How about custom regular expressions for the filenames? Are you familiar with these? See http://en.wikipedia.org/wiki/Regular_expression
Regular expressions are commonly used where certain patterns of strings need to be detected. For example, you could specify the regexp
(.*)\s+-\s+(.*)\.wav
which means that the file names match the following pattern:
.: a number of arbitrary characters
\s+: one or more blanks,
-: a hyphen,
\s+: one or more blanks again,
.: arbitrary characters,
.wav: the file extension (the backslash indicates that “.” is the period character here, not the wild card for “any character”)
The parentheses are used to mark certain substrings which can be extracted later. In order for mAirList to “learn” your file name format, you would then have to specify (a) the pattern and (b) the respective pair of parantheses in which artist and title can be found.
mAirList uses regular expressions internally a lot, so it’s not a big deal to implement this. I will later give you assistance with your patterns.
Torben
Yes, that sounds fair. If mAirList can work with various formats (2 dashes seems VERY custom!)… However, I believe Artist - Title.ext to be pretty much standard unless you’re using a playout system that renames songs to cart numbers, ie: 00001.etc (like Enco).
We took two dashes in order to avoid any ambiguity in case there’s another dash somewhere in the artist or title part. Other stations might use different patterns with the same intentions. So it’s better to make it all custom.
Torben