<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 21, 2018 at 7:55 PM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Wed, 21 Feb 2018 19:34:29 -0500, you wrote:<br>
<br>
>> > trieli@mythtv:~$ ls -al /var/www/html<br>
>> >total 24<br>
>> >drwxr-xr-x 2 root root  4096 Feb 21 10:26 .<br>
>> >drwxr-xr-x 4 root root  4096 May 26  2016 ..<br>
>> >-rw-r--r-- 1 root root 11321 May 26  2016 index.html<br>
>> >-rw-r--r-- 1 root root    50 Feb 21 10:26 playlist.m3u<br>
>> >trieli@mythtv:~$<br>
>> ><br>
>> >Is there anything wrong with these permissions?<br>
>><br>
>> No.  The web server can read the files, as it runs as root.  So access<br>
>> to the files is then controlled by the web server.  Which will allow<br>
>> you to access them from anywhere that has access to the web server -<br>
>> it is not set up by default with any restrictions on access.  To check<br>
>> that it is working, run this from a (non-root) command prompt on that<br>
>> box:<br>
>><br>
>> wget <a href="http://127.0.0.1/playlist.m3u" rel="noreferrer" target="_blank">http://127.0.0.1/playlist.m3u</a><br>
>><br>
>> It should download a copy of the playlist.m3u file.<br>
<br>
><br>
</span><span class="gmail-">>Thanks Stephen, that gives me this:<br>
>trieli@mythtv:~$ wget <a href="http://127.0.0.1/playlist.m3u" rel="noreferrer" target="_blank">http://127.0.0.1/playlist.m3u</a><br>
>--2018-02-21 19:18:59--  <a href="http://127.0.0.1/playlist.m3u" rel="noreferrer" target="_blank">http://127.0.0.1/playlist.m3u</a><br>
>Connecting to 127.0.0.1:80... connected.<br>
>HTTP request sent, awaiting response... 200 OK<br>
>Length: 50 [audio/x-mpegurl]<br>
>Saving to: ‘playlist.m3u’<br>
><br>
>playlist.m3u        100%[===================>]      50  --.-KB/s    in 0s<br>
><br>
><br>
>2018-02-21 19:18:59 (3.47 MB/s) - ‘playlist.m3u’ saved [50/50]<br>
><br>
>trieli@mythtv:~$<br>
><br>
>So maybe this isn't right?<br>
<br>
</span>That is all working correctly.<br>
<span class="gmail-"><br>
>trieli@mythtv:~$ cat /var/www/html/playlist.m3u<br>
>#EXTM3U<br>
><a href="https://watch.cbc.ca/live/channel/windsor" rel="noreferrer" target="_blank">https://watch.cbc.ca/live/<wbr>channel/windsor</a><br>
>trieli@mythtv:~$<br>
><br>
>If the URL that I can stream on FireFox isn't what I should use, how do I<br>
>determine what to use? Or is something else wrong with my playlist?<br>
<br>
</span>Your playlist.m3u file is not in the correct format.  It needs some<br>
extra bits to make it work with MythTV.  Here is an example from my<br>
file:<br>
<br>
#EXTINF:0,4061 - ESPN2<br>
#EXTMYTHTV:xmltvid=<a href="http://espn2.sky.co.nz" rel="noreferrer" target="_blank">espn2.sky.<wbr>co.nz</a><br>
#EXTVLCOPT:program=1222<br>
rtsp://<a href="http://satip.jsw.gen.nz:554/?src=1&freq=12734&msys=dvbs&plts=off&fec=34&pol=h&ro=0.35&sr=22500&mtype=qpsk&pids=0,311,1011,1111" rel="noreferrer" target="_blank">satip.jsw.gen.nz:554/?<wbr>src=1&freq=12734&msys=dvbs&<wbr>plts=off&fec=34&pol=h&ro=0.35&<wbr>sr=22500&mtype=qpsk&pids=0,<wbr>311,1011,1111</a><br>
<br>
The #EXTINF: line is required and always has the 0, at the front, then<br>
the channum value, a space, a - character, a space and then the<br>
channel name (which, IIRC, gets put in both the name and callsign<br>
fields in the database).  The #EXTMYTHTV: line always has the xmltvid=<br>
bit and following that the correct xmltvid value to match the EPG data<br>
you are using.  It is optional - if you do not have EPG for the<br>
channel, do not use a #EXTMYTHTV: line.  The #EXTVLCOPT: line is also<br>
optional - it always has a program= followed by the serviceid of the<br>
channel.  You should not use #EXTVLCOPT: as your IPTV channels are<br>
pure web streaming channels - mine come from tuners via minisatip and<br>
do have serviceid values.<br>
<br>
There can also be problems with URLs that get redirected to a<br>
different URL.  I think that redirection code was added to<br>
mythbackend, so it should now handle that, but I have not tested it<br>
myself.  If it does not, then you have to somehow track through the<br>
redirection(s) and find the real URL and use that.<br>
<div class="gmail-HOEnZb"><div class="gmail-h5">______________________________<wbr>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/<wbr>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a></div></div></blockquote><div><br></div><div>My bad, I assumed that the leading # meant it was commented out and therefore optional. How this:</div><div><br></div><div> trieli@mythtv:~$ cat /var/www/html/playlist.m3u</div><div>#EXTM3U</div><div>#EXTINF:0,9_1 - CBC</div><div>#EXTMYTHTV:xmltvid=72772</div><div><a href="https://watch.cbc.ca/live/channel/windsor">https://watch.cbc.ca/live/channel/windsor</a></div><div>trieli@mythtv:~$</div></div><br></div></div>