Skip to content

Commit 0fa1144

Browse files
committed
removing command line parameter: -a, --add
1 parent 92c3f1f commit 0fa1144

File tree

5 files changed

+3
-28
lines changed

5 files changed

+3
-28
lines changed

docs/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ <h2 id="installation">Installation <span style="padding-left: 10px;"><sup style=
12981298
<p>The best way to install <strong>PyRadio</strong> is via a distribution package, if one exists (<em>Arch Linux</em> and derivatives can install <a target="_blank" href="https://aur.archlinux.org/packages/?K=pyradio">any of these packages</a> from the AUR, <em>FreeBSD</em> users will find it in the <a target="_blank" href="https://www.freshports.org/audio/py-pyradio/">ports</a>, etc.).</p>
12991299
<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>
13001300
<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></span></h2>
1301-
<pre>Usage: pyradio [-h] [-c CONFIG_DIR] [-p [STATION_NUMBER]] [-u PLAYER] [-a]
1301+
<pre>Usage: pyradio [-h] [-c CONFIG_DIR] [-p [STATION_NUMBER]] [-u PLAYER]
13021302
[-l] [-lt] [-sd] [-od] [-pc] [-d] [-ul] [-us] [-U] [-R] [-V]
13031303
[-ls] [-s PLAYLIST] [-tlp] [-t THEME] [--show-themes]
13041304
[--no-themes] [--write-theme IN_THEME OUT_THEME,]
@@ -1322,7 +1322,6 @@ <h2 id="command-line-options">Command line options <span style="padding-left: 10
13221322
Use specified player. A comma-separated list can be
13231323
used to specify detection order. Supported players:
13241324
mpv, mplayer, vlc.
1325-
-a, --add Add station to list.
13261325
-l, --list List of available stations in a playlist.
13271326
-lt, --log-titles Log titles to file.
13281327
-sd, --show-config-dir

docs/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ In any other case, and since **PyRadio** is currently not available via pip, you
161161
## Command line options
162162

163163
```
164-
Usage: pyradio [-h] [-c CONFIG_DIR] [-p [STATION_NUMBER]] [-u PLAYER] [-a]
164+
Usage: pyradio [-h] [-c CONFIG_DIR] [-p [STATION_NUMBER]] [-u PLAYER]
165165
[-l] [-lt] [-sd] [-od] [-pc] [-d] [-ul] [-us] [-U] [-R] [-V]
166166
[-ls] [-s PLAYLIST] [-tlp] [-t THEME] [--show-themes]
167167
[--no-themes] [--write-theme IN_THEME OUT_THEME,]
@@ -185,7 +185,6 @@ General options:
185185
Use specified player. A comma-separated list can be
186186
used to specify detection order. Supported players:
187187
mpv, mplayer, vlc.
188-
-a, --add Add station to list.
189188
-l, --list List of available stations in a playlist.
190189
-lt, --log-titles Log titles to file.
191190
-sd, --show-config-dir

docs/pyradio.1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ random.
3434
Use specified player. A comma-separated list can be
3535
used to specify detection order. Supported players:
3636
\fImpv\fR, \fImplayer\fR, \fIvlc\fR.
37-
.IP\ \fB-a\fR,\ \fB--add\fR
38-
Add station to list.
3937
.IP\ \fB-l\fR,\ \fB--list\fR
4038
List of available stations in a playlist.
4139
.IP\ \fB-lt\fR,\ \fB--log\fR\fB-titles\fR

pyradio/main.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ def shell():
252252
help='Use specified player. '
253253
'A comma-separated list can be used to specify detection order. '
254254
'Supported players: mpv, mplayer, vlc.')
255-
parser.add_argument('-a', '--add', action='store_true',
256-
help='Add station to list.')
257255
parser.add_argument('-l', '--list', action='store_true',
258256
help='List of available stations in a playlist.')
259257

@@ -809,25 +807,6 @@ def shell():
809807
if ret < 0:
810808
print_playlist_selection_error(args.stations, pyradio_config, ret)
811809

812-
# No need to parse the file if we add station
813-
# Actually we do need to do so now, so that we
814-
# handle 2-column vs. 3 or 4-column playlists
815-
if args.add:
816-
if sys.version_info < (3, 0):
817-
params = raw_input("Enter the name: "), raw_input("Enter the url: "), raw_input("Enter the encoding (leave empty for '" + pyradio_config.default_encoding + "'): ", raw_input("Enter the icon url: "))
818-
else:
819-
params = input("Enter the name: "), input("Enter the url: "), input("Enter the encoding (leave empty for '" + pyradio_config.default_encoding + "'): ", raw_input("Enter the icon url: "))
820-
msg = ('name', 'url')
821-
for i, a_param in enumerate(params):
822-
if i < 2:
823-
if a_param.strip() == '':
824-
print('** Error: No {} entered. Aborting...'.format(msg[i]))
825-
return
826-
ret = pyradio_config.append_station(params, args.stations)
827-
if ret < 0:
828-
print_playlist_selection_error(args.stations, pyradio_config, ret)
829-
return
830-
831810
if args.list:
832811
console = Console()
833812

pyradio/win.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
https://sourceforge.net/projects/mpv-player-windows/files/latest/download
3939
'''
4040
zurl = [
41-
'https://sourceforge.com/projects/mpv-player-windows/files/64bit/mpv-x86_64-20240519-git-875378f.7z/download',
41+
'https://sourceforge.com/projects/mpv-player-windows/files/64bit/mpv-x86_64-20240526-git-88f20a7.7z/download',
4242
'https://sourceforge.net/projects/mplayerwin/files/MPlayer-MEncoder/r38151/mplayer-svn-38151-x86_64.7z/download'
4343
]
4444

0 commit comments

Comments
 (0)