Skip to content

Commit

Permalink
version 0.9.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
s-n-g committed Apr 23, 2024
1 parent e73dbf0 commit 12a5e6e
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 16 deletions.
10 changes: 10 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2024-04-23 s-n-g
* version 0.9.3.4 (BUG FIX)
* adding --no-video command line parameter for vlc
* removing more python 2 code
* updating macOS installation instructions (based on Ventura)
* fixing #239 - Pyradio doesn't remember warning message was already shown
* fixing loading saved and default config options in Config Window,
Recording Dir is excluded from change
* updating docs

2024-04-18 s-n-g
* version 0.9.3.3 (BUG FIX)
* adding a resource opener parameter for linux installations
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@ Command line internet radio player.

![Pyradio](https://members.hellug.gr/sng/pyradio/pyradio.png)

## Version 0.9.3.3 may fail to update

If you try to update from **version 0.9.3.3**, you may find that the update script does not work.

This is a known bug, fixed in subsequent releases.

To update your **0.9.3.3** installation, open a terminal and execute:

```
rm install.py
curl -L \
https://raw.githubusercontent.com/coderholic/pyradio/master/pyradio/install.py \
-o install.py
```

Finally, execute:

```
python3 install.py -U -f
```

## IMPORTANT NOTICE 1

**PyRadio** may fail to install/update on some linux distros (mainly Ubuntu 23.04, Debian and derivatives, etc.) due to a change to the underlined python installation.
Expand Down
3 changes: 2 additions & 1 deletion devel/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ cMagenta="[1;3${colorMagenta}m"${cBold}
function update_brew_link(){
local INSERT
local MACOS_FILE
echo -n 'Updating brew link ... '
echo -e "Working on ${cBlue}docs/macos.md${cReset}"
echo -n ' Updating brew link ... '
INSERT=$(curl -s https://brew.sh/ | grep '<figure class="highlight"><pre>' | sed '2,$d' | sed 's/<[^>]*>//g')

# Check if INSERT is not empty
Expand Down
23 changes: 11 additions & 12 deletions devel/update_win_players
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ function get_mplayer(){
local EXISTING
local FOUND
local TO_USE
echo -e ">>> ${cMagenta}MPlayer${cReset}"
echo -en " Reading in file ${cMagenta}MPlayer${cReset} version ... "
echo -e " >>> ${cMagenta}MPlayer${cReset}"
echo -en " Reading in file ${cMagenta}MPlayer${cReset} version ... "
EXISTING=$(sed -n '/svn-[0-9]/p' pyradio/win.py | sed -e 's/.*svn-//' -e 's/-.*//')

echo -e "${cYellow}r${EXISTING}${cReset}"

echo -en " Reading published ${cMagenta}MPlayer${cReset} versions ... "
echo -en " Reading published ${cMagenta}MPlayer${cReset} versions ... "

FOUND=$(curl -s -L 'https://sourceforge.net/projects/mplayerwin/files/MPlayer-MEncoder' 2>/dev/null | grep '<tr title' | sed -e 's/<tr title="//' -e 's/".*//'|grep -e '^r')

Expand All @@ -45,7 +45,7 @@ function get_mplayer(){
if [ r"${EXISTING}" = "$n" ]
then
echo -e "$FOUND" | sed -e '2,$d' -e "s/.*/${cYellow}&${cReset}/"
echo -e "Latest ${cMagenta}MPlayer${cReset} version already used..."
echo -e " Latest ${cMagenta}MPlayer${cReset} version already used..."
return
else
echo -e "$FOUND" | sed -e '2,$d' -e "s/.*/${cRes}&${cReset}/"
Expand All @@ -61,7 +61,7 @@ function get_mplayer(){
echo "Version to use: ${TO_USE}"
fi

echo -en " Updating in file ${cMagenta}MPlayer${cReset} version ... "
echo -en " Updating in file ${cMagenta}MPlayer${cReset} version ... "
sed -i "/MPlayer-MEncoder/s/$EXISTING/$TO_USE/g" pyradio/win.py
echo -e "${cGreen}done"${cReset}
}
Expand All @@ -70,13 +70,13 @@ function get_mpv(){
local EXISTING
local FOUND
local TO_USE
echo -e ">>> ${cMagenta}MPV${cReset}"
echo -en " Reading in file ${cMagenta}MPV${cReset} version ... "
echo -e " >>> ${cMagenta}MPV${cReset}"
echo -en " Reading in file ${cMagenta}MPV${cReset} version ... "
EXISTING=$(grep mpv-player-windows pyradio/win.py | grep download | grep -v latest | sed -e "s/.*'h/h/" -e "s/',//")
EXISTING=$(basename $(dirname "$EXISTING"))
echo -e "${cYellow}$EXISTING${cReset}"

echo -en " Reading latest ${cMagenta}MPV${cReset} version ... "
echo -en " Reading latest ${cMagenta}MPV${cReset} version ... "
FOUND=$(curl -s -L https://sourceforge.net/projects/mpv-player-windows/files/64bit/ 2>/dev/null | grep '"url":"/projects' | sed 's/"url":/\n&/g' |grep '^"url"' | sed '2,$d' | sed -e 's/"url":"//' -e 's|/","full_path":".*||')

if [ $? -ne 0 ]
Expand All @@ -89,17 +89,16 @@ function get_mpv(){
if [ "$FOUND" != "$EXISTING" ]
then
echo "${cRed}$FOUND"
echo -ne " Updating in file ${cMagenta}MPV${cReset} version ... "
echo -ne " Updating in file ${cMagenta}MPV${cReset} version ... "
sed -i "s/$EXISTING/$FOUND/" pyradio/win.py
echo -e "${cGreen}done${cReset}"
else
echo "${cYellow}$FOUND${cReset}"
echo -e "Latest ${cMagenta}MPV${cReset} version already used..."
echo -e " Latest ${cMagenta}MPV${cReset} version already used..."
fi
}

echo -e "Updating ${cBlue}Windows Players Links${cReset}"
echo -e "Working on ${cGreen}pyradio/win.py${cReset}"
echo -e "Working on ${cBlue}pyradio/win.py${cReset}"
get_mpv
get_mplayer
exit 0
10 changes: 10 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
<h2 id="changelog">Changelog <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
<pre style="height: 200px;">

2024-04-23 s-n-g
* version 0.9.3.4 (BUG FIX)
* adding --no-video command line parameter for vlc
* removing more python 2 code
* updating macOS installation instructions (based on Ventura)
* fixing #239 - Pyradio doesn't remember warning message was already shown
* fixing loading saved and default config options in Config Window,
Recording Dir is excluded from change
* updating docs

2024-04-18 s-n-g
* version 0.9.3.3 (BUG FIX)
* adding a resource opener parameter for linux installations
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyradio"
version = "0.9.3.3"
version = "0.9.3.4"
authors = [
{ name="Ben Dowling", email="[email protected]" },
{ name="Spiros Georgaras", email="[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion pyradio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
" pyradio -- Console radio player. "

version_info = (0, 9, 3, 3)
version_info = (0, 9, 3, 4)

# Set it to True if new stations have been
# added to the package's stations.csv
Expand Down
2 changes: 1 addition & 1 deletion pyradio/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
''' This is PyRadio version this
install.py was released for
'''
PyRadioInstallPyReleaseVersion = '0.9.3.3'
PyRadioInstallPyReleaseVersion = '0.9.3.4'

import locale
locale.setlocale(locale.LC_ALL, "")
Expand Down

0 comments on commit 12a5e6e

Please sign in to comment.