Skip to content

Commit 21b6f6c

Browse files
committed
updating docs and adding --devel installation option
1 parent df3e5d7 commit 21b6f6c

File tree

9 files changed

+146
-79
lines changed

9 files changed

+146
-79
lines changed

README.html

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,68 @@ <h1 style="color: SaddleBrown"id="pyradio">PyRadio</h1>
3434
<p>Ben Dowling - <a target="_blank" href="https://github.com/coderholic">https://github.com/coderholic</a></p>
3535
<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>
3636
<ul>
37+
<li><a href="#table-of-contents">Table of contents</a></li>
3738
<li><a href="#requirements">Requirements</a></li>
3839
<li><a href="#installation">Installation</a></li>
3940
<li><a href="#command-line-options">Command line options</a></li>
4041
<li><a href="#controls">Controls</a></li>
4142
<li><a href="#pyradios-modes">PyRadio’s Modes</a></li>
4243
<li><a href="#config-file">Config file</a></li>
43-
<li><a href="#about-playlist-files">About Playlist files</a></li>
44+
<li><a href="#about-playlist-files">About Playlist files</a>
45+
<ul>
46+
<li><a href="#specifying-a-playlist-to-load-command-line">Specifying a playlist to load (command line)</a></li>
47+
<li><a href="#managing-playlists-within-pyradio">Managing playlists (within PyRadio)</a></li>
48+
<li><a href="#managing-foreign-playlists">Managing “foreign” playlists</a></li>
49+
<li><a href="#playlist-history">Playlist history</a></li>
50+
</ul></li>
4451
<li><a href="#search-function">Search function</a></li>
45-
<li><a href="#line-editor">Line editor</a></li>
52+
<li><a href="#line-editor">Line editor</a>
53+
<ul>
54+
<li><a href="#cjk-characters-support">CJK characters support</a></li>
55+
</ul></li>
4656
<li><a href="#moving-stations-around">Moving stations around</a></li>
47-
<li><a href="#specifying-stations-encoding">Specifying stations’ encoding</a></li>
48-
<li><a href="#player-detection-selection">Player detection / selection</a></li>
57+
<li><a href="#specifying-stations-encoding">Specifying stations’ encoding</a>
58+
<ul>
59+
<li><a href="#station-by-station-encoding-declaration">Station by station encoding declaration</a></li>
60+
<li><a href="#global-encoding-declaration">Global encoding declaration</a></li>
61+
<li><a href="#finding-the-right-encoding">Finding the right encoding</a></li>
62+
</ul></li>
63+
<li><a href="#player-detection--selection">Player detection / selection</a>
64+
<ul>
65+
<li><a href="#extra-player-parameters">Extra Player Parameters</a>
66+
<ul>
67+
<li><a href="#using-the-command-line">Using the command line</a></li>
68+
<li><a href="#using-the-configuration-window">Using the Configuration Window</a></li>
69+
</ul></li>
70+
<li><a href="#changing-parameters-set">Changing parameters set</a></li>
71+
</ul></li>
4972
<li><a href="#player-connection-protocol">Player connection protocol</a></li>
50-
<li><a href="#player-default-volume-level">Player default volume level</a></li>
73+
<li><a href="#player-default-volume-level">Player default volume level</a>
74+
<ul>
75+
<li><a href="#mpv">MPV</a></li>
76+
<li><a href="#mplayer">MPlayer</a></li>
77+
</ul></li>
5178
<li><a href="#displaying-station-info">Displaying Station Info</a></li>
5279
<li><a href="#copying-and-pasting---registers">Copying and pasting - Registers</a></li>
53-
<li><a href="#pyradio-themes">PyRadio Themes</a></li>
80+
<li><a href="#pyradio-themes">PyRadio Themes</a>
81+
<ul>
82+
<li><a href="#using-transparency">Using transparency</a></li>
83+
</ul></li>
5484
<li><a href="#mouse-support">Mouse support</a></li>
55-
<li><a href="#session-locking">Session Locking</a></li>
85+
<li><a href="#session-locking">Session Locking</a>
86+
<ul>
87+
<li><a href="#session-unlocking">Session unlocking</a></li>
88+
</ul></li>
5689
<li><a href="#update-notification">Update notification</a></li>
57-
<li><a href="#cleaning-up">Cleaning up</a></li>
90+
<li><a href="#cleaning-up">Cleaning up</a>
91+
<ul>
92+
<li><a href="#previous-cleaning-up-procedure">Previous cleaning up procedure</a></li>
93+
</ul></li>
5894
<li><a href="#debug-mode">Debug mode</a></li>
5995
<li><a href="#reporting-bugs">Reporting bugs</a></li>
60-
<li><a href="#packaging-pyradio">Packagin PyRadio</a></li>
96+
<li><a href="#packaging-pyradio">Packaging Pyradio</a></li>
6197
<li><a href="#todo">TODO</a></li>
62-
<li><a href="#acknowlegement">Acknowlegement</a></li>
98+
<li><a href="#acknowledgment">Acknowledgment</a></li>
6399
</ul>
64100
<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>
65101
<ul>

README.md

Lines changed: 45 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,51 @@ Ben Dowling - [https://github.com/coderholic](https://github.com/coderholic)
66

77
## Table of contents
88

9-
* [Requirements](#requirements)
10-
* [Installation](#installation)
11-
* [Command line options](#command-line-options)
12-
* [Controls](#controls)
13-
* [PyRadio's Modes](#pyradios-modes)
14-
* [Config file](#config-file)
15-
* [About Playlist files](#about-playlist-files)
16-
* [Search function](#search-function)
17-
* [Line editor](#line-editor)
18-
* [Moving stations around](#moving-stations-around)
19-
* [Specifying stations' encoding](#specifying-stations-encoding)
20-
* [Player detection / selection](#player-detection-selection)
21-
* [Player connection protocol](#player-connection-protocol)
22-
* [Player default volume level](#player-default-volume-level)
23-
* [Displaying Station Info](#displaying-station-info)
24-
* [Copying and pasting - Registers](#copying-and-pasting---registers)
25-
* [PyRadio Themes](#pyradio-themes)
26-
* [Mouse support](#mouse-support)
27-
* [Session Locking](#session-locking)
28-
* [Update notification](#update-notification)
29-
* [Cleaning up](#cleaning-up)
30-
* [Debug mode](#debug-mode)
31-
* [Reporting bugs](#reporting-bugs)
32-
* [Packagin PyRadio](#packaging-pyradio)
33-
* [TODO](#todo)
34-
* [Acknowlegement](#acknowlegement)
9+
- [Table of contents](#table-of-contents)
10+
- [Requirements](#requirements)
11+
- [Installation](#installation)
12+
- [Command line options](#command-line-options)
13+
- [Controls](#controls)
14+
- [PyRadio's Modes](#pyradios-modes)
15+
- [Config file](#config-file)
16+
- [About Playlist files](#about-playlist-files)
17+
- [Specifying a playlist to load (command line)](#specifying-a-playlist-to-load-command-line)
18+
- [Managing playlists (within PyRadio)](#managing-playlists-within-pyradio)
19+
- [Managing "foreign" playlists](#managing-foreign-playlists)
20+
- [Playlist history](#playlist-history)
21+
- [Search function](#search-function)
22+
- [Line editor](#line-editor)
23+
- [CJK characters support](#cjk-characters-support)
24+
- [Moving stations around](#moving-stations-around)
25+
- [Specifying stations' encoding](#specifying-stations-encoding)
26+
- [Station by station encoding declaration](#station-by-station-encoding-declaration)
27+
- [Global encoding declaration](#global-encoding-declaration)
28+
- [Finding the right encoding](#finding-the-right-encoding)
29+
- [Player detection / selection](#player-detection--selection)
30+
- [Extra Player Parameters](#extra-player-parameters)
31+
- [Using the command line](#using-the-command-line)
32+
- [Using the Configuration Window](#using-the-configuration-window)
33+
- [Changing parameters set](#changing-parameters-set)
34+
- [Player connection protocol](#player-connection-protocol)
35+
- [Player default volume level](#player-default-volume-level)
36+
- [MPV](#mpv)
37+
- [MPlayer](#mplayer)
38+
- [Displaying Station Info](#displaying-station-info)
39+
- [Copying and pasting - Registers](#copying-and-pasting---registers)
40+
- [PyRadio Themes](#pyradio-themes)
41+
- [Using transparency](#using-transparency)
42+
- [Mouse support](#mouse-support)
43+
- [Session Locking](#session-locking)
44+
- [Session unlocking](#session-unlocking)
45+
- [Update notification](#update-notification)
46+
- [Cleaning up](#cleaning-up)
47+
- [Previous cleaning up procedure](#previous-cleaning-up-procedure)
48+
- [Debug mode](#debug-mode)
49+
- [Reporting bugs](#reporting-bugs)
50+
- [Packaging Pyradio](#packaging-pyradio)
51+
- [TODO](#todo)
52+
- [Acknowledgment](#acknowledgment)
53+
3554

3655
## Requirements
3756

build.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ <h3 id="macos">macOS</h3>
8989
<h2 id="performing-the-installation">Performing the 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>
9090
<p>First thing you do is get the installation script. Open a <strong>terminal</strong> and type:</p>
9191
<pre>cd
92-
wget https://raw.githubusercontent.com/coderholic/pyradio/devel/pyradio/install.py</pre>
92+
wget https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py</pre>
9393
<p>or using curl:</p>
9494
<pre>cd
95-
curl -L https://raw.githubusercontent.com/coderholic/pyradio/devel/pyradio/install.py -o install.py</pre>
96-
<p><strong>Note</strong>: If you have neither <em>wget</em> or <em>curl</em> installed, just right click on <a target="_blank" href="https://raw.githubusercontent.com/coderholic/pyradio/devel/pyradio/install.py">this link</a> and use your browser “<strong>Save as</strong>” menu entry to save the file in your home folder.</p>
95+
curl -L https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py -o install.py</pre>
96+
<p><strong>Note</strong>: If you have neither <em>wget</em> or <em>curl</em> installed, 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>
9797
<p>Finally, execute the command:</p>
9898
<pre>python install.py</pre>
9999
<p>On <strong>Debian</strong> based systems you will have to execute:</p>

build.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ First thing you do is get the installation script. Open a **terminal** and type:
106106

107107
```
108108
cd
109-
wget https://raw.githubusercontent.com/coderholic/pyradio/devel/pyradio/install.py
109+
wget https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py
110110
```
111111

112112
or using curl:
113113

114114
```
115115
cd
116-
curl -L https://raw.githubusercontent.com/coderholic/pyradio/devel/pyradio/install.py -o install.py
116+
curl -L https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py -o install.py
117117
```
118118

119-
**Note**: If you have neither *wget* or *curl* installed, just right click on [this link](https://raw.githubusercontent.com/coderholic/pyradio/devel/pyradio/install.py) and use your browser "**Save as**" menu entry to save the file in your home folder.
119+
**Note**: If you have neither *wget* or *curl* installed, just right click on [this link](https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py) and use your browser "**Save link as**" menu entry to save the file in your home folder.
120120

121121
Finally, execute the command:
122122

pyradio/install.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ class PyRadioUpdate(object):
4949
0 - official release
5050
1 - s-n-g release
5151
2 - s-h-g devel
52+
3 - official devel
5253
'''
5354

5455
ZIP_URL = ('https://github.com/coderholic/pyradio/archive/master.zip',
5556
'https://github.com/s-n-g/pyradio/archive/master.zip',
5657
'https://github.com/s-n-g/pyradio/archive/devel.zip',
58+
'https://github.com/coderholic/pyradio/archive/devel.zip',
5759
)
5860

59-
ZIP_DIR = ('pyradio-master', 'pyradio-master', 'pyradio-devel')
61+
ZIP_DIR = ('pyradio-master', 'pyradio-master', 'pyradio-devel', 'pyradio-devel')
6062

6163
install = False
6264
user = False
@@ -190,7 +192,7 @@ def _do_it(self, mode='update'):
190192
print('Error: Cannot create temp directory: "{}"'.format(self._dir))
191193
sys.exit(1)
192194

193-
''' downloaad pyradio '''
195+
''' download pyradio '''
194196
self._download_pyradio()
195197

196198
''' change to pyradio directory '''
@@ -280,7 +282,7 @@ def _empty_dir(self):
280282
self._mkdir(self._dir, self._empty_dir, self._permission_error)
281283

282284
def _permission_error(self):
283-
print('Error: You don\'t have permission to create: ""\n'.format(self._dir))
285+
print('Error: You don\'t have permission to create: "{}"\n'.format(self._dir))
284286
sys.exit(1)
285287

286288
def _clean_up(self):
@@ -377,11 +379,13 @@ def _do_it(self, mode='update'):
377379
''' extra downloads
378380
only use them after the developer says so,
379381
for debug purposes only
382+
--devel download official devel branch
380383
--sng-master download developer release (master)
381384
--sng-devel download developer devel branch
382385
'''
383386
parser.add_argument('--sng-master', action='store_true', help=SUPPRESS)
384387
parser.add_argument('--sng-devel', action='store_true', help=SUPPRESS)
388+
parser.add_argument('--devel', action='store_true', help=SUPPRESS)
385389

386390
args = parser.parse_args()
387391
sys.stdout.flush()
@@ -390,8 +394,10 @@ def _do_it(self, mode='update'):
390394
package = 0
391395
if args.sng_master:
392396
package = 1
393-
if args.sng_devel:
397+
elif args.sng_devel:
394398
package = 2
399+
elif args.devel:
400+
package = 3
395401

396402
if args.uninstall:
397403
if platform.system().lower().startswith('win'):

pyradio/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,15 @@ def shell():
101101
''' extra downloads
102102
only use them after the developer says so,
103103
for debug purposes only
104+
--devel download official devel branch
104105
--sng-master download developer release (master)
105106
--sng-devel download developer devel branch
106107
--force-update give a versio > than current,
107108
to check update notification functionality
108109
'''
109110
parser.add_argument('--sng-master', action='store_true', help=SUPPRESS)
110111
parser.add_argument('--sng-devel', action='store_true', help=SUPPRESS)
112+
parser.add_argument('--devel', action='store_true', help=SUPPRESS)
111113
parser.add_argument('--force-update', default='', help=SUPPRESS)
112114
args = parser.parse_args()
113115
sys.stdout.flush()
@@ -122,6 +124,8 @@ def shell():
122124
package = 1
123125
elif args.sng_devel:
124126
package = 2
127+
elif args.devel:
128+
package = 3
125129
if not config_already_read:
126130
read_config(pyradio_config)
127131
config_already_read = True

pyradio/radio.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,6 @@ def run(self):
842842
else:
843843
''' start update detection and notification thread '''
844844
if CAN_CHECK_FOR_UPDATES:
845-
''' if any of these files are found, no update check will occur
846-
TODO: find pyradio's script installation path under macOS
847-
'''
848-
distro_package = ('/usr/bin/pyradio', )
849845
if self._cnf.locked:
850846
if logger.isEnabledFor(logging.INFO):
851847
logger.info('(detectUpdateThread): session locked. Not starting!!!')

windows.html

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,33 @@ <h1 style="color: SaddleBrown"id="pyradio-on-windows">PyRadio on Windows</h1>
3434
<p>Ben Dowling - <a target="_blank" href="https://github.com/coderholic">https://github.com/coderholic</a></p>
3535
<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>
3636
<ul>
37+
<li><a href="#pyradio-on-windows">PyRadio on Windows</a>
38+
<ul>
39+
<li><a href="#table-of-contents">Table of contents</a></li>
3740
<li><a href="#running-pyradio-on-windows">Running PyRadio on Windows</a></li>
3841
<li><a href="#how-it-all-works">How it all works</a></li>
3942
<li><a href="#installation">Installation</a>
4043
<ul>
41-
<li><a href="#python-installation">1. Python installation</a>
44+
<li><a href="#1-python-installation">1. Python installation</a>
4245
<ul>
43-
<li><a href="#installing-python">1.1 Installing Python</a></li>
44-
<li><a href="#verifying-the-installation">1.2 Verifying the installation</a></li>
46+
<li><a href="#11-installing-python">1.1 Installing Python</a></li>
47+
<li><a href="#12-verifying-the-installation">1.2 Verifying the installation</a></li>
4548
</ul></li>
46-
<li><a href="#player-installation">2. Player installation</a>
49+
<li><a href="#2-player-installation">2. Player installation</a>
4750
<ul>
48-
<li><a href="#mplayer-installation">2.1 MPlayer installation</a></li>
49-
<li><a href="#vlc-installation">2.2 VLC installation</a></li>
51+
<li><a href="#21-mplayer-installation">2.1 MPlayer installation</a></li>
52+
<li><a href="#22-vlc-installation">2.2 VLC installation</a></li>
5053
</ul></li>
51-
<li><a href="#pyradio-installation">3. PyRadio installation</a>
54+
<li><a href="#3-pyradio-installation">3. PyRadio installation</a>
5255
<ul>
53-
<li><a href="#final-steps">3.1 Final steps</a></li>
54-
<li><a href="#cleaning-up">3.2 Cleaning up</a></li>
56+
<li><a href="#31-final-steps">3.1 Final steps</a></li>
57+
<li><a href="#32-cleaning-up">3.2 Cleaning up</a></li>
5558
</ul></li>
5659
</ul></li>
5760
<li><a href="#updating-pyradio">Updating PyRadio</a></li>
5861
<li><a href="#uninstalling-pyradio">Uninstalling PyRadio</a></li>
59-
<li><a href="#reporting-bugs">Reporing bugs</a></li>
62+
<li><a href="#reporting-bugs">Reporting bugs</a></li>
63+
</ul></li>
6064
</ul>
6165
<p><a href="build.html">[Back to Build Instructions]</a> | <a href="README.html">[Back to README]</a></p>
6266
<h2 id="running-pyradio-on-windows">Running PyRadio on Windows <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></style></h2>
@@ -155,7 +159,7 @@ <h4 id="final-steps">3.1 Final steps</h4>
155159
</pre>
156160
<p>Finally, you can type <strong>pyradio</strong> and enjoy!</p>
157161
<p style="margin: 1.5em 4em 0 4em; text-indent: -2.5em;"><strong>Note:</strong> For your convenience, the installation batch file has tried to installed a shortcut on your Desktop. You can use it to launch <strong>PyRadio</strong> and optionally modify it (change font size, window dimensions, etc). If it’s not there, you can just copy it from the “<em>help</em>” directory of the <strong>Explorer File Manager</strong> which will open after executing <strong>pyradio -ocd</strong>.</p>
158-
<h3 id="cleaning-up">3.2 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></h3>
162+
<h4 id="cleaning-up">3.2 Cleaning up</h4>
159163
<p>After the installation is completed, there will be some files left on your system, which you may want to remove. These are:</p>
160164
<ol type="1">
161165
<li><strong>install.py</strong>: The script you originally downloaded. It should be in your home folder.</li>
@@ -174,7 +178,7 @@ <h2 id="uninstalling-pyradio">Uninstalling PyRadio <span style="padding-left: 10
174178
<pre>pyradio -R</pre>
175179
<p><strong>PyRadio</strong> create an uninstall batch file and open Windows Explorer to its location.</p>
176180
<p>You just double click on the batch file (called <strong>uninstall.bat</strong>) to complete the procedure.</p>
177-
<h3 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></h3>
181+
<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>
178182
<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>.</p>
179183
<p>In you report you should, at the very least, state your <strong>pyradio version</strong> and <strong>python version</strong>.</p>
180184
<p>It would be really useful to include <strong>%USERPROFILE%/pyradio.log</strong> in your report.</p>

0 commit comments

Comments
 (0)