ezstream icon indicating copy to clipboard operation
ezstream copied to clipboard

Placehorder @T@ changed?

Open tyctor opened this issue 3 years ago • 2 comments

hi

we used some old version of ezstream for five years and it sends filename as metadata by default now we upgraded to 1.0.2 and it seems that default changed to artist - title

so i put @T@ placeholder in config file, but it is replaced by absolute path name

is there any posibility to add new placeholder replaced by filename only? or can i somehow achieve to strip path from filename?

thanks for any advice

tyctor

tyctor avatar Nov 25 '22 22:11 tyctor

Hi, can you please share both your version 0 and version 1 configuration files, minus any sensitive data like passwords. It is likely that you found a bug, but I could use the help to track it down ... Thanks!

mgrimm avatar Jan 24 '23 00:01 mgrimm

here:

version 1

<?xml version="1.0" encoding="UTF-8"?>
<ezstream>
  <servers>
    <server>
      <protocol>http</protocol>
      <hostname></hostname>
      <user></user>
      <password></password>
    </server>
  </servers>

  <streams>
    <stream>
      <mountpoint>/archive</mountpoint>
      <format>MP3</format>
      <stream_name>RadioPunctum</stream_name>
      <stream_url>https://radiopunctum.cz</stream_url>
      <stream_description>Radio Punctum is an online radio station which actively supports local artists and hosts regular shows or guest selectors.</stream_description>
      <stream_bitrate>320</stream_bitrate>
      <stream_samplerate>44100</stream_samplerate>
      <stream_channels>2</stream_channels>
    </stream>
  </streams>

  <intakes>
    <intake>
      <type>program</type>
      <filename>/home/punctum/projects/punctum-admin/sbin/django_archiveplayer.sh</filename>
      <stream_once>0</stream_once>
    </intake>
  </intakes>

  <metadata>
    <format_str>@T@</format_str>
  </metadata>
</ezstream>

version 2

<ezstream>
    <url>http://77.93.223.221:8000/archive</url>
    <sourceuser></sourceuser>
    <sourcepassword></sourcepassword>
    <format>MP3</format>
    <filename>/home/punctum/projects/punctum.cz/radiopunctum_player.sh</filename>
    <playlist_program>1</playlist_program>

   <!--
    <metadata_progname>meta.sh</metadata_progname>
    <metadata_format>@s@: @a@ - @t@</metadata_format>
    <metadata_refreshinterval>10</metadata_refreshinterval>
      The following settings are used to describe your stream to the server.
      It's up to you to make sure that the bitrate/quality/samplerate/channels
      information matches up with your input stream files.
     -->

    <svrinfoname>RadioPunctum</svrinfoname>
    <svrinfourl>http://live.punctum.cz</svrinfourl>
    <svrinfodescription>Best radio</svrinfodescription>
    <svrinfobitrate>320</svrinfobitrate>
    <svrinfochannels>2</svrinfochannels>
    <svrinfosamplerate>44100</svrinfosamplerate>
</ezstream>

tyctor avatar Jan 24 '23 10:01 tyctor