I am trying to write a relatively simple .m3u exporter but I'm having trouble grasping the export syntax.
I am attempting to:
-load a folder of mp3s (and subfolders) into mp3tag (i got that part
)
-export an .m3u file for each file into the same folder as the track itself. Each m3u file will contain only one item.
The URL in the M3U will be a combined path of a URL prefix+subfolder+filename.ext
For example, suppose I edit the .mte and specify that my URL prefix is:
http://www.mysite.com/media/and mp3tag is showing the contents and subfolders of:
C:\Documents and Settings\User\Desktop<!--coloro:#CC6600-->samples
and I use my M3U exporter on the files:
C:\Documents and Settings\User\Desktop<!--coloro:#CC6600-->samples\album_one\01-The_Good_Song.mp3
C:\Documents and Settings\User\Desktop<!--coloro:#CC6600-->samples\album_one\02-The_Bad_Song.mp3
then these m3u files should be the result:
#EXTM3U
#EXTINF:0,%artist% - %track%
#EXTM3U
#EXTINF:0,%artist% - %track%
A simple naming for the .m3u files is fine such as %_filename%.m3u, I don't mind the double extension that will result.
The reason for this exporter is I want to link some audio samples in mp3 format to .m3u files rather than directly link to the mp3s. In some browser configurations, when users click the mp3 it just downloads in the background without letting the user know the progress and they seem to give up after a while. This will ensure it opens outside the browser.
If there is anything that I could do to make the code simpler, such as ensuring that the subfolders and filenames could be accurately generated using the tags I would be happy to do so.
Thanks for any help you can provide. My .mte files seem to either create only a single .m3u or crash mp3tag.