Skip to content

Commit d668e00

Browse files
committed
- Version 0.8.9
- mplayer profile will use internal mixer instead of system - updating docs
1 parent 6e204b3 commit d668e00

15 files changed

+312
-302
lines changed

Changelog

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
2021-04-02 s-n-g
1+
2021-04-03 s-n-g
2+
* Version 0.8.9
23
* Implemented a simplified method to install, update, uninstall.
34
* PyRadio will detect its player abnormal termination.
45
* Player's connection timeout can now be disabled. Once a player is
56
started, it will be considered to be connected immediately.
67
* stations.csv changes can now be integrated into user's stations.csv
8+
* mplayer "pyradio" profile will use the internal mixer to adjust volume
79
* BUG FIX: Active players parameter list is always synchronized to saved.
810
* BUG FIX: Clicking on empty space (past last station) will not crash pyradio.
911

README.html

+34-17
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
html {margin: 2em;}
1010
body {width: 750px; margin: auto;}
1111
h2 {margin-top: 2.5em; border-bottom:1px solid SaddleBrown; color: SaddleBrown;}
12-
h3 {margin-top: 2em; color: SaddleBrown;}
12+
h3 {margin-top: 2em; color: SaddleBrown; text-decoration: underline SaddleBrown}
1313
h4 {margin-top: 2em; color: SaddleBrown;}
14+
h4:before {content: "# "; font-size: 200%; font-weight: bold; vertical-align: middle;}
1415
STRONG {color: SaddleBrown;}
1516
dl {margin: 2em;}
1617
dd {margin: 1em;}
@@ -34,9 +35,9 @@ <h1 style="color: SaddleBrown"id="pyradio">PyRadio</h1>
3435
<p>Command line internet radio player.</p>
3536
<p>Ben Dowling - <a target="_blank" href="https://github.com/coderholic">https://github.com/coderholic</a></p>
3637
<h2 id="table-of-contents">Table of Contents <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
37-
<h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
3838
<!-- vim-markdown-toc Marked -->
3939
<ul>
40+
<li><a href="#requirements">Requirements</a></li>
4041
<li><a href="#installation">Installation</a></li>
4142
<li><a href="#command-line-options">Command line options</a></li>
4243
<li><a href="#controls">Controls</a></li>
@@ -88,7 +89,10 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
8889
<ul>
8990
<li><a href="#session-unlocking">Session unlocking</a></li>
9091
</ul></li>
91-
<li><a href="#update-notification">Update notification</a></li>
92+
<li><a href="#update-notification">Update notification</a>
93+
<ul>
94+
<li><a href="#updating-a-pre-0.8.9-installation">Updating a pre 0.8.9 installation</a></li>
95+
</ul></li>
9296
<li><a href="#cleaning-up">Cleaning up</a></li>
9397
<li><a href="#debug-mode">Debug mode</a></li>
9498
<li><a href="#reporting-bugs">Reporting bugs</a></li>
@@ -97,6 +101,7 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
97101
<li><a href="#acknowledgment">Acknowledgment</a></li>
98102
</ul>
99103
<!-- vim-markdown-toc -->
104+
<h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
100105
<ul>
101106
<li>python 2.7/3.5+
102107
<ul>
@@ -157,8 +162,7 @@ <h2 id="command-line-options">Command line options <span style="padding-left: 10
157162
--user Install only for current user (linux only).
158163
-R, --uninstall Uninstall PyRadio.
159164
--unlock Remove sessions&#39; lock file.
160-
-d, --debug Start pyradio in debug mode.
161-
</pre>
165+
-d, --debug Start pyradio in debug mode.</pre>
162166
<p>The following options can also be set in <strong>PyRadio</strong>’s <a href="#config-file">configuration file</a>:</p>
163167
<ul>
164168
<li><strong>-s</strong> - parameter <strong>default_playlist</strong> (default value: <strong>stations</strong>)</li>
@@ -372,7 +376,7 @@ <h3 id="extra-player-parameters">Extra Player Parameters</h3>
372376
</tr>
373377
<tr class="even">
374378
<td>mplayer</td>
375-
<td>-vo, -quiet, -playlist, -softvol, -softvol-max 300, -profile</td>
379+
<td>-vo, -quiet, -playlist, -profile</td>
376380
</tr>
377381
<tr class="odd">
378382
<td>vlc</td>
@@ -384,15 +388,15 @@ <h3 id="extra-player-parameters">Extra Player Parameters</h3>
384388
<p><strong>PyRadio</strong> provides a way for the user to add extra parameters to the player, either by a command line parameter, or the “<em>Configuration Window</em>” (under “<em>Player:</em>”).</p>
385389
<p>This way, 10 sets of parameters can be inserted and made available for selection.</p>
386390
<h4 id="using-the-command-line">Using the command line</h4>
387-
<p>When the command line parameter (<strong>-epp</strong> or <strong>–extra_player_parameters</strong>) is used, the parameters specified must be of a specific format, and will be added to the list of parameters and made default for the player for the current session.</p>
391+
<p>When the command line parameter (<strong>-ep</strong> or <strong>–extra_player_parameters</strong>) is used, the parameters specified must be of a specific format, and will be added to the list of parameters and made default for the player for the current session.</p>
388392
<p>The format of the parameter is the following: <strong>[player_name:parameters]</strong></p>
389393
<p>Where:</p>
390394
<ul>
391395
<li><strong>player_name</strong>: the name of the player</li>
392396
<li><strong>parameters</strong>: the actual player parameters</li>
393397
</ul>
394398
<p>Example:</p>
395-
<pre>pyradio -epp &quot;vlc:--force-dolby-surround 2&quot;</pre>
399+
<pre>pyradio -ep &quot;vlc:--force-dolby-surround 2&quot;</pre>
396400
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> When a parameter is passed to “<em>mpv</em>” or “<em>mplayer</em>”, <strong>PyRadio</strong>" will use the default player profile (called “<strong>pyradio</strong>”).</p>
397401
<p>For “<em>mpv</em>” and “<em>mplayer</em>” a profile can be specified (“<em>vlc</em>” does not support profiles). In this case the format of the <strong>parameters</strong> part of the command line is: <strong>profile:profile_name</strong>.</p>
398402
<p>Where:</p>
@@ -401,7 +405,7 @@ <h4 id="using-the-command-line">Using the command line</h4>
401405
<li><strong>profile_name</strong>: the name of a profile. The profile must be already defined in the player’s configuration file.</li>
402406
</ul>
403407
<p>Example:</p>
404-
<pre>pyradio -epp &quot;mpv:profile:second_sound_card&quot;</pre>
408+
<pre>pyradio -ep &quot;mpv:profile:second_sound_card&quot;</pre>
405409
<h4 id="using-the-configuration-window">Using the Configuration Window</h4>
406410
<p>When the user uses the configuration window (shown in the following image), he is presented with an interface which will permit him to select the player to use with <strong>PyRadio</strong> and edit its extra parameters.</p>
407411
<p><a target="_blank" href="https://members.hellug.gr/sng/pyradio/pyradio-player-selection.jpg">pyradio-player-selection.jpg</a></p>
@@ -440,8 +444,11 @@ <h3 id="mplayer">MPlayer</h3>
440444
<pre>volume=100
441445

442446
[pyradio]
447+
softvol=1
448+
softvol-max=300
443449
volstep=1
444-
volume=28</pre>
450+
volume=50</pre>
451+
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> Starting with <strong>PyRadio v. 0.8.9</strong>, <em>mplayer</em>’s default profile will use its internal mixer to adjust its volume; this is accompliced using the “<em>softvol=1</em>” and “<em>softvol-max=300</em>” lines above. The user may choose to remove these lines from the config (to activate system-wide volume adjustment) or add them to the config (in case the profile was created by an older <strong>PyRadio</strong> version).</p>
445452
<h2 id="displaying-station-info">Displaying Station Info <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
446453
<p>When a connection to a radio station has been established, the station starts sending audio data for the user to listen to.</p>
447454
<p>Well, that’s obvious, right?</p>
@@ -546,7 +553,17 @@ <h3 id="session-unlocking">Session unlocking</h3>
546553
<p>If for any reason <strong>PyRadio</strong> always starts in “<em>locked mode</em>”, one can <strong>unlock</strong> the session, using the “<em>–unlock</em>” command line parameter.</p>
547554
<h2 id="update-notification">Update notification <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
548555
<p><strong>PyRadio</strong> will periodically (once every 10 days) check whether a new version has been released.</p>
549-
<p>If so, a notification message will be displayed, informing the user about it.</p>
556+
<p>If so, a notification message will be displayed, informing the user about it and asking to proceed with updating the program (provided this is not a distribution package).</p>
557+
<h3 id="updating-a-pre-0.8.9-installation">Updating a pre 0.8.9 installation</h3>
558+
<p>First thing you do is get the installation script. Open a <strong>terminal</strong> and type:</p>
559+
<pre>cd
560+
wget https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py</pre>
561+
<p>or using curl:</p>
562+
<pre>cd
563+
curl -L https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py -o install.py</pre>
564+
<p><strong>Note</strong>: If you have neither <em>wget</em> or <em>curl</em> installed, or you are on Windows, just right click on <a target="_blank" href="https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py">this link</a> and use your browser “<strong>Save link as</strong>” menu entry to save the file in your home folder.</p>
565+
<p>Finally, execute the command:</p>
566+
<pre>python install.py --force</pre>
550567
<h2 id="cleaning-up">Cleaning up <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
551568
<p><strong>PyRadio</strong> will uninstall all previously installed versions when updated (using the <strong>-U</strong> command line parameter), so no extra steps are needed any more to house keep your system.</p>
552569
<h2 id="debug-mode">Debug mode <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
@@ -576,18 +593,18 @@ <h2 id="todo">TODO <span style="padding-left: 10px;"><sup style="font-size: 50%"
576593
<ul class="task-list">
577594
<li><input type="checkbox" disabled="" />
578595
Any user request I find interesting :)</li>
596+
<li><input type="checkbox" disabled="" />
597+
Use Radio Browser service (<a target="_blank" href="https://github.com/coderholic/pyradio/issues/80">#80</a> <a target="_blank" href="https://github.com/coderholic/pyradio/issues/93">#93</a> <a target="_blank" href="https://github.com/coderholic/pyradio/issues/112">#112</a>)</li>
598+
<li><input type="checkbox" disabled="" checked="" />
599+
Notify the user that the package’s stations.csv has changed -v 0.8.9</li>
600+
<li><input type="checkbox" disabled="" checked="" />
601+
Update / uninstall using command line parameters (-U / -R) - v. 0.8.9</li>
579602
<li><input type="checkbox" disabled="" checked="" />
580603
Basic mouse support (<a target="_blank" href="https://github.com/coderholic/pyradio/issues/119">#119</a>) - v. 0.8.8.3</li>
581604
<li><input type="checkbox" disabled="" checked="" />
582605
Players extra parameters (<a target="_blank" href="https://github.com/coderholic/pyradio/issues/118">#118</a>) - v. 0.8.8.3</li>
583606
<li><input type="checkbox" disabled="" checked="" />
584607
New player selection configuration window (<a target="_blank" href="https://github.com/coderholic/pyradio/issues/118">#118</a>) - v. 0.8.8.3</li>
585-
<li><input type="checkbox" disabled="" checked="" />
586-
Notify the user that the package’s stations.csv has changed -v 0.8.9</li>
587-
<li><input type="checkbox" disabled="" checked="" />
588-
Update / uninstall using command line parameters (-U / -R) - v. 0.8.9</li>
589-
<li><input type="checkbox" disabled="" />
590-
Use Radio Browser service (<a target="_blank" href="https://github.com/coderholic/pyradio/issues/80">#80</a> <a target="_blank" href="https://github.com/coderholic/pyradio/issues/93">#93</a> <a target="_blank" href="https://github.com/coderholic/pyradio/issues/112">#112</a>)</li>
591608
</ul>
592609
<h2 id="acknowledgment">Acknowledgment <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
593610
<p><strong>PyRadio</strong> uses code from the following projects:</p>

0 commit comments

Comments
 (0)