Skip to content

Commit 1e61b91

Browse files
committed
updating docs
1 parent a5e4376 commit 1e61b91

File tree

6 files changed

+140
-39
lines changed

6 files changed

+140
-39
lines changed

README.html

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</header>
2828
<h1 id="pyradio">PyRadio</h1>
2929
<p>Command line internet radio player.</p>
30-
<p>Ben Dowling - <a href="https://github.com/coderholic">https://github.com/coderholic</a></p>
30+
<p>Ben Dowling - <a target="_blank" href="https://github.com/coderholic">https://github.com/coderholic</a></p>
3131
<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>
3232
<ul>
3333
<li><a href="#requirements">Requirements</a></li>
@@ -39,20 +39,22 @@ <h2 id="table-of-contents">Table of contents <span style="padding-left: 10px;"><
3939
<li><a href="#specifying-stations-encoding">Specifying stations’ encoding</a></li>
4040
<li><a href="#player-detection-selection">Player detection / selection</a></li>
4141
<li><a href="#player-default-volume-level">Player default volume level</a></li>
42+
<li><a href="#search-function">Search function</a></li>
4243
<li><a href="#pyradio-themes">PyRadio Themes</a></li>
4344
<li><a href="#session-locking">Session Locking</a></li>
4445
<li><a href="#update-notification">Update notification</a></li>
4546
<li><a href="#cleaning-up">Cleaning up</a></li>
4647
<li><a href="#debug-mode">Debug mode</a></li>
48+
<li><a href="#reporting-bugs">Reporting bugs</a></li>
4749
</ul>
4850
<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>
4951
<ul>
5052
<li>python 2.7+/3.5+</li>
5153
<li>MPV, MPlayer or VLC installed and in your path.</li>
52-
<li><a href="http://www.dest-unreach.org/socat/">socat</a> (if you wish to use MPV)</li>
54+
<li><a target="_blank" href="http://www.dest-unreach.org/socat/">socat</a> (if you wish to use MPV)</li>
5355
</ul>
5456
<h2 id="installation">Installation <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
55-
<p>The best way to install <strong>PyRadio</strong> is via a distribution package, if one exists (e.g. <em>Arch Linux</em> and derivatives can install <a href="https://aur.archlinux.org/packages/pyradio-git/">pyradio-git</a> from AUR).</p>
57+
<p>The best way to install <strong>PyRadio</strong> is via a distribution package, if one exists (e.g. <em>Arch Linux</em> and derivatives can install <a target="_blank" href="https://aur.archlinux.org/packages/pyradio-git/">pyradio-git</a> from AUR).</p>
5658
<p>In any other case, and since <strong>PyRadio</strong> is currently not available via pip, you will have to <a href="build.html">build it from source</a>.</p>
5759
<h2 id="command-line-options">Command line options <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
5860
<pre>$ pyradio -h
@@ -194,12 +196,12 @@ <h3 id="global-encoding-declaration">Global encoding declaration</h3>
194196
<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>
195197
<h3 id="finding-the-right-encoding">Finding the right encoding</h3>
196198
<p>A valid encoding list can be found at:</p>
197-
<p><a href="https://docs.python.org/2.7/library/codecs.html#standard-encodings">https://docs.python.org/2.7/library/codecs.html#standard-encodings</a></p>
199+
<p><a target="_blank" href="https://docs.python.org/2.7/library/codecs.html#standard-encodings">https://docs.python.org/2.7/library/codecs.html#standard-encodings</a></p>
198200
<p>replacing <strong>2.7</strong> with specific version: <strong>3.0</strong> up to current python version.</p>
199201
<h2 id="player-detection-selection">Player detection / selection <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
200202
<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>
201203
<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>
202-
<p>MPV will be used only when the <a href="http://www.dest-unreach.org/socat/">socat</a> multipurpose relay is also installed.</p>
204+
<p>MPV will be used only when the <a target="_blank" href="http://www.dest-unreach.org/socat/">socat</a> multipurpose relay is also installed.</p>
203205
<p>Users can alter this default behavior by using the <strong><em>-u</em></strong> command line option. This option will permit the user either to specify the player to use, or change the detection order.</p>
204206
<p>Example:</p>
205207
<pre>pyradio -u vlc</pre>
@@ -229,6 +231,12 @@ <h3 id="mplayer">MPlayer</h3>
229231
[pyradio]
230232
volstep=1
231233
volume=28</pre>
234+
<h2 id="search-function">Search function <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
235+
<p>On any window presenting a list of items (stations, playlists, themes) a <strong>search function</strong> is available by pressing “<strong>/</strong>”.</p>
236+
<p>The <em>Search Window</em> supports normal and extend editing and in session history.</p>
237+
<p>After a search term has been successfully found, next occurrence can be obtained using the “<strong>n</strong>” key and previous occurrence can be obtained using the “<strong>N</strong>” key.</p>
238+
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> <strong>Python 2</strong> users are confined in typing ASCII characters only.</p>
239+
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> Currently, the <strong>search function</strong> is available on the stations’ and playlists’ window only.</p>
232240
<h2 id="pyradio-themes">PyRadio Themes <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
233241
<p><strong>PyRadio</strong> comes with 6 preconfigured (hard coded) themes:</p>
234242
<ol type="1">
@@ -239,7 +247,12 @@ <h2 id="pyradio-themes">PyRadio Themes <span style="padding-left: 10px;"><sup st
239247
<li><strong>white_on_black</strong> or <strong>wob</strong> (256 color b&amp;w theme). A theme for dark terminal background settings.</li>
240248
<li><strong>black_on_white</strong> or <strong>bow</strong> (256 color b&amp;w theme). A theme for light terminal background settings.</li>
241249
</ol>
242-
<p>and three 256-color system themes (these are actual files saved in the <strong>themes</strong> installation directory): 1. <strong>brown_by_sng</strong>, <strong>pink_by_sng</strong> and <strong>purple_by_sng</strong>.</p>
250+
<p>Furthermore, three 256-color system themes (these are actual files saved in the <strong>themes</strong> installation directory) are also available:</p>
251+
<ol type="1">
252+
<li><strong>brown_by_sng</strong></li>
253+
<li><strong>pink_by_sng</strong></li>
254+
<li><strong>purple_by_sng</strong></li>
255+
</ol>
243256
<p>The visual result of an applied theme greatly depends on the terminal settings (e.g. foreground and background color settings, palette used, number of colors supported, real or pseudo-transparency support, etc.)</p>
244257
<p>Pressing “<strong>t</strong>” will bring up the <em>Theme selection window</em>, which can be used to activate a theme and set the default one.</p>
245258
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> Themes that use more colors than those supported by the terminal in use, will not be present in the <em>Theme selection window</em>. Furthermore, if a such at theme is set as default (or requested using the “<strong>-t</strong>” command line option), <strong>PyRadio</strong> will silently fall-back to the “<strong>dark</strong>” theme (or the “<strong>light</strong>” theme, if the terminal supports 8 colors and default theme is set to “<em>light_16_colors</em>”).</p>
@@ -276,6 +289,15 @@ <h2 id="cleaning-up">Cleaning up <span style="padding-left: 10px;"><sup style="f
276289
$ sudo rm -rf /usr/lib/python3.7/site-packages/pyradio-0.7.7-py3.7.egg</pre>
277290
<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>
278291
<p>Adding the <strong><em>-d</em></strong> option to the command line will instruct <strong>PyRadio</strong> to enter <em>Debug mode</em>, which means that it will print debug messages to a file. This file will always reside in the user’s home directory and will be named <em>pyradio.log</em>.</p>
279-
<p>In case of a bug or a glitch, please include this file to the issue you will <a href="https://github.com/coderholic/pyradio/issues">open in github</a>.</p>
292+
<p>In case of a bug or a glitch, please include this file to the issue you will <a target="_blank" href="https://github.com/coderholic/pyradio/issues">open at github</a>.</p>
293+
<h2 id="reporting-bugs">Reporting bugs <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
294+
<p>When a bug is found, please do report it by <a target="_blank" href="https://github.com/coderholic/pyradio/issues">opening an issue at github</a>, as already stated above.</p>
295+
<p>In you report you should, at the very least, state your <strong>pyradio version</strong>, <strong>python version</strong> and <strong>method</strong> of installation (built from source, AUR, snap, whatever).</p>
296+
<p>It would be really useful to include <strong>~/pyradio.log</strong> in your report.</p>
297+
<p>To create it, enter the following commands in a terminal:</p>
298+
<pre>$ rm ~/pyradio.log
299+
$ pyradio -d</pre>
300+
<p>Then try to reproduce the bug and exit <strong>pyradio</strong>.</p>
301+
<p>Finally, include the file produced in your report.</p>
280302
</body>
281303
</html>

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ Ben Dowling - [https://github.com/coderholic](https://github.com/coderholic)
1515
* [Specifying stations' encoding](#specifying-stations-encoding)
1616
* [Player detection / selection](#player-detection-selection)
1717
* [Player default volume level](#player-default-volume-level)
18+
* [Search function](#search-function)
1819
* [PyRadio Themes](#pyradio-themes)
1920
* [Session Locking](#session-locking)
2021
* [Update notification](#update-notification)
2122
* [Cleaning up](#cleaning-up)
2223
* [Debug mode](#debug-mode)
24+
* [Reporting bugs](#reporting-bugs)
2325

2426
## Requirements
2527

@@ -327,6 +329,18 @@ Example:
327329
volstep=1
328330
volume=28
329331

332+
## Search function
333+
334+
On any window presenting a list of items (stations, playlists, themes) a **search function** is available by pressing "**/**".
335+
336+
The *Search Window* supports normal and extend editing and in session history.
337+
338+
After a search term has been successfully found, next occurrence can be obtained using the "**n**" key and previous occurrence can be obtained using the "**N**" key.
339+
340+
**Note:** **Python 2** users are confined in typing ASCII characters only.
341+
342+
**Note:** Currently, the **search function** is available on the stations' and playlists' window only.
343+
330344
## PyRadio Themes
331345

332346
**PyRadio** comes with 6 preconfigured (hard coded) themes:
@@ -338,7 +352,11 @@ Example:
338352
5. **white_on_black** or **wob** (256 color b&w theme). A theme for dark terminal background settings.
339353
6. **black_on_white** or **bow** (256 color b&w theme). A theme for light terminal background settings.
340354

341-
and three 256-color system themes (these are actual files saved in the **themes** installation directory): 1. **brown_by_sng**, **pink_by_sng** and **purple_by_sng**.
355+
Furthermore, three 256-color system themes (these are actual files saved in the **themes** installation directory) are also available:
356+
357+
1. **brown_by_sng**
358+
2. **pink_by_sng**
359+
3. **purple_by_sng**
342360

343361
The visual result of an applied theme greatly depends on the terminal settings (e.g. foreground and background color settings, palette used, number of colors supported, real or pseudo-transparency support, etc.)
344362

@@ -408,4 +426,21 @@ As we see, previous versions still exist in this system: **0.7.6.2** and **0.7.7
408426

409427
Adding the ***-d*** option to the command line will instruct **PyRadio** to enter *Debug mode*, which means that it will print debug messages to a file. This file will always reside in the user's home directory and will be named *pyradio.log*.
410428

411-
In case of a bug or a glitch, please include this file to the issue you will [open in github](https://github.com/coderholic/pyradio/issues).
429+
In case of a bug or a glitch, please include this file to the issue you will [open at github](https://github.com/coderholic/pyradio/issues).
430+
431+
## Reporting bugs
432+
433+
When a bug is found, please do report it by [opening an issue at github](https://github.com/coderholic/pyradio/issues), as already stated above.
434+
435+
In you report you should, at the very least, state your **pyradio version**, **python version** and **method** of installation (built from source, AUR, snap, whatever).
436+
437+
It would be really useful to include **~/pyradio.log** in your report.
438+
439+
To create it, enter the following commands in a terminal:
440+
441+
$ rm ~/pyradio.log
442+
$ pyradio -d
443+
444+
Then try to reproduce the bug and exit **pyradio**.
445+
446+
Finally, include the file produced in your report.

build.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</header>
2828
<h1 id="building-pyradio-from-source">Building PyRadio from source</h1>
2929
<p>Command line internet radio player.</p>
30-
<p>Ben Dowling - <a href="https://github.com/coderholic">https://github.com/coderholic</a></p>
30+
<p>Ben Dowling - <a target="_blank" href="https://github.com/coderholic">https://github.com/coderholic</a></p>
3131
<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>
3232
<ul>
3333
<li><a href="#building-from-source">Building from source</a>
@@ -61,7 +61,7 @@ <h3 id="linux">Linux</h3>
6161
<p>Use your distribution method to install <em>python-setuptools</em>, <em>git</em>, <em>sed</em> and any one of <em>MPV</em>, <em>MPlayer</em> and/or <em>VLC</em>.</p>
6262
<p>When you are done, proceed to “<a href="#performing-the-installation">Performing the installation</a>”.</p>
6363
<h3 id="macos">macOS</h3>
64-
<p>Everything you need to install, run and keep <strong>pyradio</strong> up-to-date is available on <a href="https://github.com/Homebrew/homebrew">Homebrew</a>. If you haven’t already downloaded its client, go ahead and do it.</p>
64+
<p>Everything you need to install, run and keep <strong>pyradio</strong> up-to-date is available on <a target="_blank" href="https://github.com/Homebrew/homebrew">Homebrew</a>. If you haven’t already downloaded its client, go ahead and do it.</p>
6565
<p>Open a <strong>terminal</strong> and type:</p>
6666
<pre>/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</pre>
6767
<p>Then just install <strong>git</strong>:</p>
@@ -74,9 +74,9 @@ <h3 id="macos">macOS</h3>
7474
<p>2. <strong><em>MPlayer</em></strong></p>
7575
<pre>brew install mplayer</pre>
7676
<p>3. <strong><em>VLC</em></strong></p>
77-
<p>You can get VLC from the official site or from <a href="https://github.com/Homebrew/homebrew">Homebrew</a>.</p>
77+
<p>You can get VLC from the official site or from <a target="_blank" href="https://github.com/Homebrew/homebrew">Homebrew</a>.</p>
7878
<p>a. <strong><em>Oficial package</em></strong></p>
79-
<p>You just go to <a href="http://www.videolan.org/vlc/download-macos.html">videolan.org</a>, download and install the program as you usually do with any other application.</p>
79+
<p>You just go to <a target="_blank" href="http://www.videolan.org/vlc/download-macos.html">videolan.org</a>, download and install the program as you usually do with any other application.</p>
8080
<p>Finally, add a symbolic link to the executable as follows:</p>
8181
<pre>sudo ln -s /Applications/VLC.app/Contents/MacOS/VLC /usr/bin/cvlc</pre>
8282
<p>b. <strong><em>Homebrew package</em></strong></p>

devel/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ do
3434
-e 's{</</p></li>{</li>{g' \
3535
-e 's/\.md">/.html">/g' \
3636
-e '/h1 class="title"/d' \
37+
-e 's/<a href="http/<a target="_blank" href="http/g' \
3738
-e 's{</h2>{ <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style>&{' ${out}
3839
rm tmp.md
3940
git add ${out}

0 commit comments

Comments
 (0)