segator / proxylive

This application allow you to transcode and broadcast on demand a http mpeg ts to transcoded mpegts/hls
MIT License
58 stars 21 forks source link

Malformed Channel Names in playlist generated by proxylive #17

Open rubenkr opened 3 years ago

rubenkr commented 3 years ago

Hi segator,

one question regarding the playlist's channel names. Some are displayed correctly. And approximately 30% are not and are malformed. This happens when the source is set to tvheadend. The error can be best explained via this image. Would be great to know how to fix this in the channel generation.

Thank you in advance and kind regards.

PS: if there is a way to tip you just let me know

segator commented 3 years ago

I see, interesting probably we will need to escape the name when generating the m3u file can you share the full name of one of those that have problems? i can make a fast fix

rubenkr commented 3 years ago

Awesome! Sure here are a few of those from M3U File proxylive:

EXTM3U cache=2000 url-tvg="http://tvheadend:3081/epg" x-tvg-url="http://tvheadend:3081/epg" tvg-shift=0

EXTINF:-1 tvg-chno="1" group-title="IPTV 07/21 (filtered, proxied)" group-title="IPTV due 31/07/2021 (filtered & renamed)" group-title="SDTV" group-title="Common" group-title="FFmpeg" group-title="IPTV 07/21 (filtered, renamed)" group-title="Germany" group-title="DE Ent" group-title="IPTV" group-title="TV channels" tvg-id="9e093a129b9bca7e59bf156b426c4cc3" tvg-name="Das Erste" type="mpeg",Das Erste

From VLC: renamed)" group-title="Germany" group-title="DE Ent" group-title="IPTV" group-title="TV channels" tvg-id="9e093a129b9bca7e59bf156b426c4cc3" tvg-name="Das Erste" type="mpeg",Das Erste

renamed)" group-title="Germany" group-title="DE Ent" group-title="IPTV" group-title="TV channels" tvg-id="be8e16357afa765683b976fb4d560c71" tvg-name="RTL2" type="mpeg",RTL2

They should have read from the TVHeadend generated M3U via http://user:pw@tvheadend9981/playlist/ as follows:

EXTINF:-1 logo="http://www.tvboxgroup.com/iptv/logo/DE/DE011DasErste.png" tvg-id="9e093a129b9bca7e59bf156b426c4cc3" tvg-chno="1",Das Erste

http://tvheadend:9981/stream/channelid/305793438?profile=pass

This prefix tag "renamed)" is potentially coming from a naming issue inside my network (e.g. it is called "Aliexpress IPTV 07/21 (filtered, renamed)"). Might that be the issue?

segator commented 3 years ago

I see the problem is the double quote, we need to escape this character replace " for \"