How to change url from m3u8 to .ts
<p>I'm trying to make an iptv link work on my receiver
this is the original link that i want to convert </p>

<blockquote>
  <p><a href="http://s7.iapi.com:8000/re-NBA/index.m3u8?token=BzyIVQOtO77MTw" rel="nofollow">http://s7.iapi.com:8000/re-NBA/index.m3u8?token=BzyIVQOtO77MTw</a></p>
</blockquote>

<p>and this is the format that i want to reach in the end.</p>

<blockquote>
  <p><a href="http://pro-vision.dyndns.pro:12580/live/laurent/laurent/2791.ts" rel="nofollow">http://pro-vision.dyndns.pro:12580/live/laurent/laurent/2791.ts</a></p>
</blockquote>