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
* psutil installed by default
* if installed psutil and / or rich, show message to
restart the installation
- added profile and buffering to playylist fields
- playlist verion now depends on Station(IntEnum)
- reg.py and unreg.py: simplified installation and uninstallation
- updated docs
<li><ahref="#changing-player-mid-session">Changing player mid-session</a></li>
92
92
<li><ahref="#specifying-a-station's-referer-url">Specifying a station’s Referer URL</a>
93
93
<ul>
94
-
<li><ahref="#a-note-of-caution">A note of caution</a></li>
95
94
<li><ahref="#note-about-mplayer">Note about MPlayer</a></li>
95
+
<li><ahref="#referer-support-in-the-playlist">Referer support in the playlist</a></li>
96
96
</ul></li>
97
97
<li><ahref="#extra-player-parameters">Extra Player Parameters</a>
98
98
<ul>
@@ -1639,9 +1639,78 @@ <h3 id="the-user-config-file">The user config file</h3>
1639
1639
<p>If saving the configuration file fails, <strong>PyRadio</strong> will create a back up file and terminate. When restarted, <strong>PyRadio</strong> will try to restore previously used settings from the said back up file.</p>
1640
1640
<h2id="about-playlist-files">About Playlist files <spanstyle="padding-left: 10px;"><supstyle="font-size: 50%"><ahref="#" title="Go to top of the page">Top</a></sup></span></h2>
1641
1641
<p><strong>PyRadio</strong> reads the stations to use from a CSV file, where each line contains two columns, the first being the station name and the second being the stream URL.</p>
1642
-
<p>Optionally, two more columns can be used.</p>
1643
-
<p>The third column will define the encoding used by the station (more on this at <ahref="#specifying-stations-encoding">Specifying stations’ encoding</a>).</p>
1644
-
<p>The fourth column will set an <em>Icon URL</em>, to be used when displaying <ahref="#desktop-notifications">Desktop Notifications</a>.</p>
1642
+
<p>Optionally, a number of more columns can be used.</p>
1643
+
<ul>
1644
+
<li><p>The third column will define the encoding used by the station (more on this at <ahref="#specifying-stations-encoding">Specifying stations’ encoding</a>).</p></li>
1645
+
<li><p>The fourth column will set an <em>Icon URL</em>, to be used when displaying <ahref="#desktop-notifications">Desktop Notifications</a>.</p></li>
1646
+
<li><p>The fifth column is the profile to be used with this station.</p></li>
1647
+
<li><p>The sixth column will determine whether <strong>Buffering</strong> will be used (more on this at <ahref="#buffering">Buffering</a>).</p></li>
1648
+
<li><p>The seventh column will determine whether the station will be forced to be using http instead of https (more on this at <ahref="#player-connection-protocol">Player connection protocol</a>).</p></li>
1649
+
<li><p>The eight column defines the volume value to be used.</p></li>
1650
+
<li><p>The last column will define the referer to be used (more on this at <ahref="##specifying-a-station's-referer-url">Specifying a station’s Referer URL</a>).</p></li>
1651
+
</ul>
1652
+
<p>The following table presents the <strong>Station’s fields</strong> and the current level of support.</p>
1653
+
<table>
1654
+
<colgroup>
1655
+
<colstyle="width: 22%" />
1656
+
<colstyle="width: 39%" />
1657
+
<colstyle="width: 38%" />
1658
+
</colgroup>
1659
+
<thead>
1660
+
<tr>
1661
+
<th>Station Field</th>
1662
+
<th>Takes Effect in Playlist</th>
1663
+
<th>Customizable in Program</th>
1664
+
</tr>
1665
+
</thead>
1666
+
<tbody>
1667
+
<tr>
1668
+
<td>Name</td>
1669
+
<td><0.9.3.11.5</td>
1670
+
<td><0.9.3.11.5</td>
1671
+
</tr>
1672
+
<tr>
1673
+
<td>URL</td>
1674
+
<td><0.9.3.11.5</td>
1675
+
<td><0.9.3.11.5</td>
1676
+
</tr>
1677
+
<tr>
1678
+
<td>Encoding</td>
1679
+
<td><0.9.3.11.5</td>
1680
+
<td><0.9.3.11.5</td>
1681
+
</tr>
1682
+
<tr>
1683
+
<td>Icon</td>
1684
+
<td><0.9.3.11.5</td>
1685
+
<td><0.9.3.11.5</td>
1686
+
</tr>
1687
+
<tr>
1688
+
<td>Profile</td>
1689
+
<td><strong>No</strong></td>
1690
+
<td><strong>No</strong></td>
1691
+
</tr>
1692
+
<tr>
1693
+
<td>Buffering</td>
1694
+
<td><strong>No</strong></td>
1695
+
<td><strong>No</strong></td>
1696
+
</tr>
1697
+
<tr>
1698
+
<td>Force HTTP</td>
1699
+
<td><strong>No</strong></td>
1700
+
<td><strong>No</strong></td>
1701
+
</tr>
1702
+
<tr>
1703
+
<td>Volume</td>
1704
+
<td><strong>No</strong></td>
1705
+
<td>0.9.3.11.5</td>
1706
+
</tr>
1707
+
<tr>
1708
+
<td>Referer URL</td>
1709
+
<td><0.9.3.11.5</td>
1710
+
<td><strong>No</strong><br>Using a referer file</td>
1711
+
</tr>
1712
+
</tbody>
1713
+
</table>
1645
1714
<p><strong>PyRadio</strong> will by default load the user’s stations file (e.g. <em>~/.config/pyradio/stations.csv</em>) to read the stations from. If this file is not found, it will be created and populated with a default set of stations.</p>
1646
1715
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> Older versions used to use <strong>~/.pyradio</strong> as default stations file. If this file is found, it will be copied to use’s config directory (e.g. <strong>~/.config/pyradio</strong>) and renamed to <strong>stations.csv</strong> or if this file exists, to <strong>pyradio.csv</strong>. In this case, this file will be the default one.</p>
1647
1716
<h3id="defining-and-using-groups">Defining and using Groups</h3>
@@ -1850,9 +1919,6 @@ <h3 id="specifying-a-stations-referer-url">Specifying a station’s Referer URL<
1850
1919
<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>
1851
1920
<p>In our example above, the file will have to be named:</p>
1852
1921
<p><strong>“My video station.referer.txt”</strong></p>
1853
-
<h4id="a-note-of-caution">A note of caution</h4>
1854
-
<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>
1855
-
<p>Rename the station using <strong>PyRadio</strong> rename functionality and save the playlist instead; the referer file will be renamed as well.</p>
1856
1922
<h4id="note-about-mplayer">Note about MPlayer</h4>
1857
1923
<p>This will unfortunately not work with <strong>MPlayer</strong>.</p>
1858
1924
<p>It seems it will not use the <strong>Referer</strong> provided, as shown in the following part of the command execution output:</p>
@@ -1866,6 +1932,20 @@ <h4 id="note-about-mplayer">Note about MPlayer</h4>
<h4id="referer-support-in-the-playlist">Referer support in the playlist</h4>
1936
+
<p>As of v. <strong>0.9.3.11.5</strong>, support for the referer in the playilist has been implemented.</p>
1937
+
<p>In this case, if a referer file is found for a station, <strong>PyRadio</strong> will:</p>
1938
+
<oltype="1">
1939
+
<li>update the station info in the playlist</li>
1940
+
<li>mark the playlist as <strong>modified</strong></li>
1941
+
<li>remove the referer file</li>
1942
+
<li>inform the user so that he saves the playlist</li>
1943
+
</ol>
1944
+
<pstyle="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> At this point, inserting the referer from <strong>PyRadio</strong> TUI has not yet been implemented.<br/>
1945
+
<br/>
1946
+
One can either use the referer file method described above, or just manually edit the playlist file and add it using the following format:</p>
<p>Please note the number of commas inserted after the <em>Station URL</em>.</p>
1869
1949
<h3id="extra-player-parameters">Extra Player Parameters</h3>
1870
1950
<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>
1871
1951
<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>
@@ -421,11 +421,36 @@ If saving the configuration file fails, **PyRadio** will create a back up file a
421
421
422
422
**PyRadio** reads the stations to use from a CSV file, where each line contains two columns, the first being the station name and the second being the stream URL.
423
423
424
-
Optionally, two more columns can be used.
424
+
Optionally, a number of more columns can be used.
425
425
426
-
The third column will define the encoding used by the station (more on this at [Specifying stations' encoding](#specifying-stations-encoding)).
426
+
- The third column will define the encoding used by the station (more on this at [Specifying stations' encoding](#specifying-stations-encoding)).
427
+
428
+
- The fourth column will set an *Icon URL*, to be used when displaying [Desktop Notifications](#desktop-notifications).
429
+
430
+
- The fifth column is the profile to be used with this station.
431
+
432
+
- The sixth column will determine whether **Buffering** will be used (more on this at [Buffering](#buffering)).
433
+
434
+
- The seventh column will determine whether the station will be forced to be using http instead of https (more on this at [Player connection protocol](#player-connection-protocol)).
435
+
436
+
- The eight column defines the volume value to be used.
437
+
438
+
- The last column will define the referer to be used (more on this at [Specifying a station's Referer URL](##specifying-a-station's-referer-url)).
439
+
440
+
The following table presents the **Station's fields** and the current level of support.
441
+
442
+
| Station Field | Takes Effect in Playlist | Customizable in Program |
| Referer URL | <0.9.3.11.5 |**No**<br>Using a referer file |
427
453
428
-
The fourth column will set an *Icon URL*, to be used when displaying [Desktop Notifications](#desktop-notifications).
429
454
430
455
**PyRadio** will by default load the user's stations file (e.g. *~/.config/pyradio/stations.csv*) to read the stations from. If this file is not found, it will be created and populated with a default set of stations.
431
456
@@ -751,12 +776,6 @@ In our example above, the file will have to be named:
751
776
752
777
**"My video station.referer.txt"**
753
778
754
-
#### A note of caution
755
-
756
-
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.
757
-
758
-
Rename the station using **PyRadio** rename functionality and save the playlist instead; the referer file will be renamed as well.
759
-
760
779
#### Note about MPlayer
761
780
762
781
This will unfortunately not work with **MPlayer**.
@@ -776,6 +795,25 @@ Icy-MetaData: 1
776
795
[https @ 0x7f4a42c7fa60]HTTP error 403 Forbidden
777
796
```
778
797
798
+
#### Referer support in the playlist
799
+
800
+
As of v. **0.9.3.11.5**, support for the referer in the playilist has been implemented.
801
+
802
+
In this case, if a referer file is found for a station, **PyRadio** will:
803
+
804
+
1. update the station info in the playlist
805
+
2. mark the playlist as **modified**
806
+
3. remove the referer file
807
+
4. inform the user so that he saves the playlist
808
+
809
+
**Note:** At this point, inserting the referer from **PyRadio** TUI has not yet been implemented. \
810
+
\
811
+
One can either use the referer file method described above, or just manually edit the playlist file and add it using the following format:
812
+
813
+
Station Name,Station URL,,,,,,Referer URL
814
+
815
+
Please note the number of commas inserted after the *Station URL*.
816
+
779
817
### Extra Player Parameters
780
818
781
819
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
+66-14Lines changed: 66 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -388,14 +388,43 @@ If saving the configuration file fails, \fBpyradio\fR will create a back up file
388
388
.SH About Playlist Files
389
389
.PP
390
390
\fBpyradio\fR reads the stations to use from a CSV file, where each line contains two columns, the first being the station name and the second being the stream URL.
391
+
391
392
.PP
392
-
Optionally, a third column can be inserted, stating the encoding used by the station (more on this at \fBSpecifyingStations'Encoding\fR).
393
-
.PP
394
-
Optionally, two more columns can be used.
395
-
.PP
396
-
The third column will define the encoding used by the station (more on this at \fBSpecifyingStations'Encoding\fR).
397
-
.PP
398
-
The fourth column will set an \fIIconURL\fR, to be used when displaying \fBDesktopNotifiacations\fR.
393
+
Optionally, a number of more columns can be used.
394
+
.IP-3
395
+
The third column will define the encoding used by the station (more on this at \fISpecifyingstations'encoding\fR).
396
+
.IP-3
397
+
The fourth column will set an *Icon URL*, to be used when displaying \fIDesktopNotifications\fR.
398
+
.IP-3
399
+
The fifth column is the profile to be used with this station.
400
+
.IP-3
401
+
The sixth column will determine whether **Buffering** will be used (more on this at \fIBuffering\fR).
402
+
.IP-3
403
+
The seventh column will determine whether the station will be forced to be using http instead of https (more on this at \fIPlayerconnectionprotocol\fR).
404
+
.IP-3
405
+
The eighth column defines the volume value to be used.
406
+
.IP-3
407
+
The last column will define the referer to be used (more on this at \fISpecifyingastation'sRefererURL\fR).
408
+
.PP
409
+
The following table presents the \fBStation'sfields\fR and the current level of support.
\fBpyradio\fR will by default load the user's stations file (e.g. \fI~/.config/pyradio/stations.csv\fR). If this file is not found, it will be created and populated with a default set of stations.
401
430
@@ -864,13 +893,6 @@ In our example above, the file will have to be named:
864
893
"\fIMyvideostation.referer.txt\fR"
865
894
.RE
866
895
867
-
\fBAnoteofcaution\fR
868
-
.RS
869
-
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.
870
-
871
-
Rename the station using \fBpyradio\fR rename functionality and save the playlist instead; the referer file will be renamed as well.
0 commit comments