Forums » Tutorial and setups »
Make Muxes follow redirects
Added by Fabio Tunno almost 6 years ago
Hi,
I have an IPTV url that returns an m3u file.
Each entry is a link to an IPTV server that streams contents.
For example:
#EXTINF:-1 tvg-id="" tvg-name="My Channel Name" tvg-logo="" group-title="COUNTRY",IT: My Channel Name http://server.com:8000/live/stream/content
and it works correctly
But other links has an url that "redirects" to other url.
Example:
#EXTINF:-1 tvg-id="" tvg-name="My Channel Name 2" tvg-logo="" group-title="COUNTRY",IT: My Channel Name 2 http://server.com:8000/live/stream/content.htm
This link return a 301 response code with Location header to the correct streaming url
Muxes show "FAIL" in status column, instead, and I think they cannot follow redirect links.
Is it possibile to enable "follow-redirect"? how can I resolve my problem?
Thanks in advance
Replies (1)
RE: Make Muxes follow redirects - Added by Brian Shensky about 5 years ago
While not ideal, I just wanted to put this out there...
You can use "curl" command line combined with the pipe:// facility in TVHeadend to get your redirects followed. Just turn
http://yoursitethatneedsredirection.xxx
into
pipe:///usr/bin/curl -s -L -N --output - http://yoursitethatneedsredirection.xxx
in the M3U file. Curl will respect and process the redirection, and pipe the video stream into TVHeadend.