How to upload m3u file content to a list in php

Asked

Viewed 796 times

0

The idea is to have a field input where the user places the m3u and by pressing the button the list of channels that is in that file m3u is shown below in a table.

Fields that count in this file m3u sane: tvg-logo - tvg-name -

The structure is basically like this:

#EXTM3U
#EXTINF:-1 tvg-id="" tvg-name="BBB 18 -Aquecimento" tvg-logo="https://s9.postimg.org/4c14egx5b/big_Welcome_Pic_4-300x169.png" group-title="Canais Globo",BBB 18 -Aquecimento
http://infinity.quor8.com:8000/live/wesleybr/mxViBCIK05/12664.ts
#EXTINF:-1 tvg-id="" tvg-name="Globo RJ FHD" tvg-logo="http://i.imgur.com/NSHvLCe.png" group-title="Canais Globo",Globo RJ FHD
http://infinity.quor8.com:8000/live/wesleybr/mxViBCIK05/12665.ts
#EXTINF:-1 tvg-id="Globo RJ" tvg-name="Globo RJ HD" tvg-logo="http://i.imgur.com/NSHvLCe.png" group-title="Canais Globo",Globo RJ HD
http://infinity.quor8.com:8000/live/wesleybr/mxViBCIK05/1586.ts

The link goes like this:

http://Infinity.quor8.com:8000/get.php?
username=NOME-DO-USUARIO&password=SENHA-DO-USUARIO&type=m3u_plus&output=ts

The idea as I said is to leave the link above in a field, generate below a table with the logo, name and link of the channels.

I have tried here in many ways, but I have not succeeded.

  • If possible edit your question by clicking [Edit] and post the code you have made so far.

  • André, try to use this package, I saw he already does all the "mapping" of the information in the list https://packagist.org/packages/chrisyue/php-m3u8

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.