User:MihaiEso/Mp3tag Export Templates

From Esolang
Jump to navigation Jump to search

Here are some Mp3tag export templates, those are made by me! Most are for saving to playlist formats (generating playlists from audio files). Heck: M3U is not needed, but it can also export to M3U if you select the Playlist (all/selected files) or the Generate Playlists command from the File menu.

Windows Media Playlist.mte (saves as a Windows Media playlist, compatible with Windows Media Player, extension *.wpl)

$filename(wpl,utf-8)<?wpl version="1.0"?>
<smil>
    <head>
        <meta name="Generator" content="%_app%"/>
        <meta name="ItemCount" content="%_max_counter%"/>
        <title>My Playlist - exported by %_app%</title>
    </head>
    <body>
        <seq>
$loop(%_path%)            <media src="%_path%"/>
$loopend()        </seq>
    </body>
</smil>

ASX Playlist.mte (saves as a ASX playlist, compatible with Windows Media Player and maybe some other programs, extension *.asx)

$filename(asx,utf-8)<Asx Version="3.0">
<Param Name="AllowShuffle" Value="yes"/>
<Title>My Playlist - exported by %_app%</Title>
$loop(%_path%)<Entry><Ref href="%_path%"/></Entry>
$loopend()</Asx>

B4S Playlist.mte (saves as a B4S playlist, compatible with Winamp 3+ (recent versions with plugin) and maybe VLC, extension *.b4s)

$filename(b4s,ansi)<?xml version="1.0" encoding=''UTF-8'' standalone="yes"?>
 <WinampXML>
<!-- Generated by: %_app% -->
  <playlist num_entries="%_max_counter%" label="My Playlist - exported by %_app%">
$loop(%_path%)    <entry Playstring="file:%_path%">
      <Name>%_filename_ext%</Name>
    </entry>
$loopend()  </playlist>
 </WinampXML>

TXT.mte (saves as a plain text file, which actually looks good, with C/C++ style comments at beginning and end of file, extension *.txt)

$filename(txt,utf-8)/* Exported by %_app% */

$loop(%_path%)Filename: %_filename_ext%
Title: %title%
Artist: %artist%
Album: %album%
Genre: %genre%
Year: %year%
Comment: %comment%

$loopend()/* End of file! */

PLS Playlist.mte (saves as a PLS playlist, compatible with MPC-HC (Media Player Classic - Home Cinema), Winamp and maybe some other programs too, extension *.pls)

$filename(pls,utf-8)'['playlist']'
$loop(%_path%)File%_counter%=%_path%
$loopend()NumberOfEntries=%_max_counter%
Version=2

SPL (Simple Playlist) Playlist.mte (saves as a SPL playlist, compatible with well, nothing, because it's my own format!, extension *.spl)

$filename(spl,utf-8){SPL File}
# Generated by %_app%
{Metadata}
'['Title']'=My Playlist, exported by %_app%
'['Generator']'=%_app%
'['NumberOfEntries']'=%_max_counter%
{Playlist Body}
$loop(%_filename_ext%)'['%_counter%']'=%_filename_ext%
$loopend()# End of file!

SPL (Simple Playlist) Playlist, without comments.mte (saves as above but without any comments!, extension *.spl)

$filename(spl,utf-8){SPL File}
{Metadata}
'['Title']'=My Playlist, exported by %_app%
'['Generator']'=%_app%
'['NumberOfEntries']'=%_max_counter%
{Playlist Body}
$loop(%_filename_ext%)'['%_counter%']'=%_filename_ext%
$loopend()

And lastly: MPC Playlist.mte (saves as a MPC-HC playlist, compatible with MPC-HC (Media Player Classic - Home Cinema), extension *.mpcpl)

$filename(mpcpl,utf-8)MPCPLAYLIST
$loop(%_filename_ext%)%_counter%,type,0
%_counter%,filename,%_filename_ext%
$loopend()

Here's a ZIP archive with all above (made with KZIP) if you want something easier to install (encoded as Base64):

UEsDBBQAAgAIACdW1lglKeO3qAAAAMgAAAAQAAAAQVNYIFBsYXlsaXN0Lm10ZTWOzWqEMBSF94LvcAkKCuNY6KaLGHDR5RRpi1u5xRsUrklIImPevk5/tuf7zuEUemUyuFGF4bjsUTcvtezDASP5sFrTiefrk1B5Jgf0uMHbqXaiZ7b3j2XXmknAiLyfYaIg2of5uUYmdUswMCZeQ4QG6HDWR5rhK0E5oXOlbH+9PCvYWleVk8O4lLV8NdEnJd9Jw+JJd+KPnOOy/YH/HTJzVcv2vKu+AVBLAwQUAAIACAAsVtZYThZVye4AAABcAQAAEAAAAEI0UyBQbGF5bGlzdC5tdGVFkMFKxDAQhu+C7zCGDW3BWAUPsiS7N7244kHRW0i3owbSSUiy0r69ze4W5zbDN9/wz+rLOiQzYN3dp2tDyTZyOw4OfjEm60mxu5tbBkh731v6VlX1/vYoHqoKUjbUG+cJFZswse3m8g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AAAAAAAAAIAAAAIECAABQTFMgUGxheWxpc3QubXRlUEsBAhQAFAACAAgAeV3WWHL6EIepAAAA6gAAADQAAAAAAAAAAAAgAAAAHQMAAFNQTCAoU2ltcGxlIFBsYXlsaXN0KSBQbGF5bGlzdCwgd2l0aG91dCBjb21tZW50cy5tdGVQSwECFAAUAAIACABKXdZYE9d/37gAAAAPAQAAIgAAAAAAAAAAACAAAAAYBAAAU1BMIChTaW1wbGUgUGxheWxpc3QpIFBsYXlsaXN0Lm10ZVBLAQIUABQAAgAIAEpW1lgj6ptCmwAAANsAAAAHAAAAAAAAAAAAIAAAABAFAABUWFQubXRlUEsBAhQAFAACAAgAIlbWWPkqfRPUAAAAbgEAABoAAAAAAAAAAAAgAAAA0AUAAFdpbmRvd3MgTWVkaWEgUGxheWxpc3QubXRlUEsFBgAAAAAIAAgAJwIAANwGAAAAAA

Others like CSV and HTML are just built in the program.

I will add more in the future, so stay tuned!