Fredolx / open-tv

Ultra-fast, simple and powerful cross-platform IPTV app
GNU General Public License v2.0
1.15k stars 30 forks source link

Incorrect channel name when using tvheadend m3u files #80

Open adriadam10 opened 1 day ago

adriadam10 commented 1 day ago

Hi, first of all, nice app! simple and easy to use.

I have tried to add my m3u from tvheadend but it gets the channels with an incorrect name. It seems that it extracts the name from a variable called tvg-id that appears in the line of the channel inside the m3u.

Here's is the scheme that every channel follows: #EXTINF:-1 tvg-logo="logo-link" tvg-id="random-id",Channel_name stream-link

adriadam10 commented 1 day ago

inspecting the code i found this: https://github.com/Fredolx/open-tv/blob/main/src-tauri/src/m3u.rs#L130

it looks like the app takes the id if tvg-name is not set