You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- the "i" / "info" response has been beautified
- the IP and PORT will only be printed as a response to the "i" / "info" command, provided that the -s command line parameter has not been used
- adding referer stations' support
- updating docs
<li><ahref="#changing-player-mid-session">Changing player mid-session</a></li>
122
+
<li><ahref="#specifying-a-station's-referer-url">Specifying a station’s Referer URL</a>
123
+
<ul>
124
+
<li><ahref="#a-note-of-caution">A note of caution</a></li>
125
+
</ul></li>
122
126
<li><ahref="#extra-player-parameters">Extra Player Parameters</a>
123
127
<ul>
124
128
<li><ahref="#using-the-configuration-window">Using the Configuration Window</a></li>
@@ -1762,6 +1766,17 @@ <h3 id="changing-player-mid-session">Changing player mid-session</h3>
1762
1766
<p>Pressing “<strong>\m</strong>” will bring up the “<em>Switch Media Player</em>” window, where a different player can be activated.</p>
1763
1767
<p>If <strong>recording is on</strong> while using the previously activated player, it will remain on with the newly activated one. This actually means that the recording will stop when the old player is stopped and resumed when the new player is activated (creating a new recorder file). There is just one exception to that; selecting <strong>VLC</strong> is not possible on <strong>Windows</strong>, since <strong>VLC</strong> does not support recording on this platform.</p>
1764
1768
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> The activated player will not be saved; <strong>PyRadio</strong> will still use the player defined at its config next time it is executed.</p>
1769
+
<h3id="specifying-a-stations-referer-url">Specifying a station’s Referer URL</h3>
1770
+
<p>Although <strong>PyRadio</strong> is meant to be a readio station player, it can also be used to listen to video stations transmitting m3u8 playlists (HTTP Live Streaming or HLS).</p>
1771
+
<p>The thing with these transmissions is that usually a <strong>Referer URL</strong> has to be provided so that the connection does not fail.</p>
1772
+
<p><strong>PyRadio</strong> now does support the declaration of a <strong>Referer URL</strong> for individual stations; it does it in an “anorthodox” way, but it is possible.</p>
1773
+
<p>So, let us imagine that a station called “<em>My video station</em>” has been added to a playlist. The user tries to play it but it fails; the referer URL is missing.</p>
1774
+
<p>To rectify the situation, a file containing the referer URL would have to be saved in the config directory: its name must be the name of the station as it is in the playlist, followed by the “<strong>.referer.txt</strong>” extension.</p>
1775
+
<p>In our example above, the file will have to be named:</p>
1776
+
<p><strong>“My video station.referer.txt”</strong></p>
1777
+
<h4id="a-note-of-caution">A note of caution</h4>
1778
+
<p>If such a file has been created for a station, please do not rename the station in the playlist manually; the “link” to the referer file will be lost.</p>
1779
+
<p>Rename the station using <strong>PyRadio</strong> rename functionality and save the playlist instead; the referer file will be renamed as well.</p>
1765
1780
<h3id="extra-player-parameters">Extra Player Parameters</h3>
1766
1781
<p>All three supported players can accept a significant number of “<em>command line options</em>”, which are well documented and accessible through man pages (on linux and MacOs) or the documentation (on Windows).</p>
1767
1782
<p><strong>PyRadio</strong> uses some of these parameters in order to execute and communicate with the players. In particular, the following parameters are in use <strong>by default</strong>:</p>
@@ -747,6 +749,28 @@ If **recording is on** while using the previously activated player, it will rema
747
749
748
750
**Note:** The activated player will not be saved; **PyRadio** will still use the player defined at its config next time it is executed.
749
751
752
+
### Specifying a station's Referer URL
753
+
754
+
Although **PyRadio** is meant to be a readio station player, it can also be used to listen to video stations transmitting m3u8 playlists (HTTP Live Streaming or HLS).
755
+
756
+
The thing with these transmissions is that usually a **Referer URL** has to be provided so that the connection does not fail.
757
+
758
+
**PyRadio** now does support the declaration of a **Referer URL** for individual stations; it does it in an "anorthodox" way, but it is possible.
759
+
760
+
So, let us imagine that a station called "*My video station*" has been added to a playlist. The user tries to play it but it fails; the referer URL is missing.
761
+
762
+
To rectify the situation, a file containing the referer URL would have to be saved in the config directory: its name must be the name of the station as it is in the playlist, followed by the "**.referer.txt**" extension.
763
+
764
+
In our example above, the file will have to be named:
765
+
766
+
**"My video station.referer.txt"**
767
+
768
+
#### A note of caution
769
+
770
+
If such a file has been created for a station, please do not rename the station in the playlist manually; the "link" to the referer file will be lost.
771
+
772
+
Rename the station using **PyRadio** rename functionality and save the playlist instead; the referer file will be renamed as well.
773
+
750
774
### Extra Player Parameters
751
775
752
776
All three supported players can accept a significant number of "*command line options*", which are well documented and accessible through man pages (on linux and MacOs) or the documentation (on Windows).
Copy file name to clipboardExpand all lines: docs/pyradio.1
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -837,6 +837,37 @@ Pressing "\fI\\m\fR" will bring up the "\fBSwitch Media Player\fR" window, where
837
837
.IP\fBNote\fR
838
838
The activated player will not be saved; **PyRadio** will still use the player defined at its config next time it is executed.
839
839
840
+
841
+
842
+
843
+
844
+
.SH Specifying a station's Referer URL
845
+
846
+
Although \fBpyradio\fR is meant to be a readio station player, it can also be used to listen to video stations transmitting m3u8 playlists (HTTP Live Streaming or HLS).
847
+
848
+
The thing with these transmissions is that usually a \fBRefererURL\fR has to be provided so that the connection does not fail.
849
+
850
+
\fBpyradio\fR now does support the declaration of a \fBRefererURL\fR for individual stations; it does it in an "anorthodox" way, but it is possible.
851
+
852
+
So, let us imagine that a station called "\fIMyvideostation\fR" has been added to a playlist. The user tries to play it but it fails; the referer URL is missing.
853
+
854
+
To rectify the situation, a file containing the referer URL would have to be saved in the config directory: its name must be the name of the station as it is in the playlist, followed by the "\fB.referer.txt\fR" extension.
855
+
856
+
In our example above, the file will have to be named:
857
+
858
+
.RS
859
+
"\fIMyvideostation.referer.txt\fR"
860
+
.RE
861
+
862
+
\fBAnoteofcaution\fR
863
+
.RS
864
+
If such a file has been created for a station, please do not rename the station in the playlist manually; the "link" to the referer file will be lost.
865
+
866
+
Rename the station using \fBpyradio\fR rename functionality and save the playlist instead; the referer file will be renamed as well.
867
+
.RE
868
+
869
+
870
+
840
871
.SH Extra Player Parameters
841
872
842
873
All three supported players can accept a significant number of "\fIcommandlineparameters\fR", which are well documented and accessible through man pages (on linux and macOs) or the documentation (on Windows).
0 commit comments