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
- Adding loading default options to config window
- Trasnparency and Theme settings will not be automatically saved in
Config window
- Canceling theme selection will restore saved theme (not in config)
- Adding empty space around Config second level Help windows
- Done a bit of refactoring
- Updating docs
<p><strong>PyRadio</strong> upon its execution tries to read its configuration file (i.e. <em>~/.config/pyradio/config</em>). If this file is not found, it will be created. If an error occurs while parsing it, an error message will be displayed and <strong><em>PyRadio</em></strong> will terminate.</p>
118
118
<p>The file contains parameters such as the player to use, the playlist to load etc. It is heavily commented (as you can see <ahref="pyradio/config">here</a>), so that manual editing is really easy. The best practice to manually edit this file is executing <strong><em>PyRadio</em></strong> with the <strong>-ocd</strong> command line option, which will open the configuration directory in your file manager, and then edit it using your preferable text editor.</p>
119
-
<p>The file can also be altered while <strong>PyRadio</strong> is running by pressing “<strong><em>c</em></strong>”, which will open the “<strong><em>Configuration window</em></strong>”. This window presents all <strong>PyRadio</strong> options and provide the way to change them.</p>
119
+
<p>The file can also be altered while <strong>PyRadio</strong> is running by pressing “<strong><em>c</em></strong>”, which will open the “<strong><em>Configuration window</em></strong>”. This window presents all <strong>PyRadio</strong> options and provide the way to change them and finally save them by pressing “<strong><em>s</em></strong>”.</p>
120
120
<p>In any case, <strong>PyRadio</strong> will save the file before exiting (or in case Ctrl-C is pressed) if needed (e.g. if a config parameter has been changed during its execution).</p>
121
+
<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>
<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>
123
124
<p>Optionally, a third column can be inserted, stating the encoding used by the station (more on this at <ahref="#specifying-stations-encoding">Specifying stations’ encoding</a>).</p>
<p>Setting this parameter to a different encoding, will permit <strong>PyRadio</strong> to successfully decode such stations.</p>
186
187
<p>This would be useful in the case where most of your stations do not use <strong>utf-8</strong>. Instead of editing the playlist and add the encoding to each and every affected station, you just set it globally.</p>
187
188
<h3id="finding-the-right-encoding">Finding the right encoding</h3>
188
-
<p>A valid encoding list can be found (depends on python version):</p>
<p><strong>PyRadio</strong> is basically built around the existence of a valid media player it can use. Thus, it will auto detect the existence of its supported players upon its execution.</p>
201
194
<p>Currently, it supports MPV, MPlayer and VLC, and it will look for them in that order. If none of them is found, the program will terminate with an error.</p>
Copy file name to clipboardExpand all lines: README.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,10 +109,12 @@ The same logic applies to all **PyRadio** windows.
109
109
110
110
The file contains parameters such as the player to use, the playlist to load etc. It is heavily commented (as you can see [here](pyradio/config)), so that manual editing is really easy. The best practice to manually edit this file is executing ***PyRadio*** with the **-ocd** command line option, which will open the configuration directory in your file manager, and then edit it using your preferable text editor.
111
111
112
-
The file can also be altered while **PyRadio** is running by pressing "***c***", which will open the "***Configuration window***". This window presents all **PyRadio** options and provide the way to change them.
112
+
The file can also be altered while **PyRadio** is running by pressing "***c***", which will open the "***Configuration window***". This window presents all **PyRadio** options and provide the way to change them and finally save them by pressing "***s***".
113
113
114
114
In any case, **PyRadio** will save the file before exiting (or in case Ctrl-C is pressed) if needed (e.g. if a config parameter has been changed during its execution).
115
115
116
+
If saving the configuration file fails, **PyRadio** will create a back up file and terminate. When restarted, **PyRadio** will try to restore previously used settings from the said back up file.
117
+
116
118
## About Playlist files
117
119
118
120
**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.
@@ -247,19 +249,11 @@ This would be useful in the case where most of your stations do not use **utf-8*
247
249
248
250
### Finding the right encoding
249
251
250
-
A valid encoding list can be found (depends on python version):
Copy file name to clipboardExpand all lines: pyradio.1
+6-19Lines changed: 6 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -92,10 +92,12 @@ All windows support changing the volume and muting / unmuting the player (provid
92
92
93
93
The file contains parameters such as the player to use, the playlist to load etc. It is heavily commented, so that manual editing is really easy. The best practice to manually edit this file is executing \fBpyradio\fR with the \fB-ocd\fR command line option, which will open the configuration directory in your file manager, and then edit it using your preferable text editor.
94
94
95
-
The file can also be altered while \fBpyradio\fR is running, by pressing "\fIc\fR", which will open the "\fIConfigurationwindow\fR". This window presents all \fBpyradio\fR options and provide the way to change them.
95
+
The file can also be altered while \fBpyradio\fR is running, by pressing "\fIc\fR", which will open the "\fIConfigurationwindow\fR". This window presents all \fBpyradio\fR options and provide the way to change them and finally save them by pressing "\fIs\fR".
96
96
97
97
In any case, \fBpyradio\fR will save the file before exiting (or in case Ctrl-C is pressed) if needed (e.g. if a config parameter has been changed during its execution).
98
98
99
+
If saving the configuration file fails, \fBpyradio\fR will create a back up file and terminate. When restarted, \fBpyradio\fR will try to restore previously used settings from the said back up file.
100
+
99
101
.SH ABOUT PLAYLIST FILES
100
102
.PP
101
103
\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.
@@ -262,26 +264,11 @@ This would be useful in the case where most of your stations do not use \fIutf-8
262
264
.B
263
265
FINDINGTHERIGHTENCODING
264
266
265
-
A valid encoding list can be found (depends on python version):
0 commit comments