Enable support for flac files when editing lrc file
The lrc
file extension is used in lyrics files, this format is already supported, it even can open mp3
files to easily synchronize the lyrics file.
- The problem is that if the audio file linked to a
lrc
file is aflac
audio file it does not get opened because on .../VideoFiles file the supported formats are hard-coded and theflac
format is not there. - Nowadays the
flac
format is very popular vs 9 years ago when the file was modified last time, so is a nice to have - I tried to make the change but got some errors BUT I shamelessly changed the extension from
flac
tomp3
and it worked pretty well, so I think gstream already supportsflac
files and is viable to allow them.
private static Regex videoFilesRegex = new Regex(@"\.(?:(?:3g2)|(?:3gp)|(?:asf)|(?:avi)|(?:bdm)|(?:cpi)|(?:divx)|(?:flv)|(?:m4v)|(?:mkv)|(?:mod)|(?:mov)|(?:mp3)|(?:mp4)|(?:mpeg)|(?:mpg)|(?:mts)|(?:ogg)|(?:ogm)|(?:ogv)|(?:rm)|(?:rmvb)|(?:spx)|(?:vob)|(?:wav)|(?:webm)|(?:wma)|(?:wmv)|(?:xvid))$", RegexOptions.IgnoreCase);