Skip to content

Version 0.9.3

Compare
Choose a tag to compare
@s-n-g s-n-g released this 05 Apr 12:47
· 113 commits to master since this release

This is a big update, with heavy refactoring and introducing a lot of new concepts, so I expect to have a lot of BUG reports.

Please be kind ;)

Once you execute PyRadio v. 0.9.3 these things will happen:

  1. Your recordings dir will be moved to your home folder and renamed to pyradio-recordings.

  2. Your titles log files will be moved to the new Recordings Dir.

  3. PyRadio's cache will be moved to ~/.cache/pyradio (not on Windows).

If you are using a Linux Distro Package, there's a chance the packager has decided to enable support for the XDG Base Directory specification.

In this case:

  1. most of the files that reside in ~/config/pyradio and ~/.config/pyradio/data will be moved to ~/.local/share/pyradio or ~/.local/state/pyradio.

  2. Any file that you may have saved under ~/.config/pyradio and has not been created by PyRadio, will be moved into a folder called pyradio-not-migrated in your home folder.

  3. Your ~/.config/pyradio/data folder will be removed.

  4. All your playlists and the main configuraton files will remain in ~/.config/pyradio.

IMPORTANT - headless operation

If you use the "headless" functionality and upgrading to v. 0.9.3, please keep in mind that a headless session will not perform any of the tasks described above, leading to unpredictable result.

To ensure the correct operation, please take these actions:

  1. Terminate headless instance of PyRadio.

  2. Execute PyRadio in a terminal at least once, permitting the directory changes to take effect.

  3. Start a new headless instance of PyRadio.

Changelog

  • user config file will not be automatically created; it will be created
    only when some parameter value is different to the one set in the package
    config file
  • adding -pc (--print-config) command line option
  • adding the xdg_compliant config option (packagers option) if set to True,
    config dir contents will be moved to XDG Base dir
    (https://wiki.archlinux.org/title/XDG_Base_Directory)
  • RadioBrowser: present next previous result pages
  • RadioBrowser: adding Icon to station DB info
  • Remote Control Server: adding commands relevant to RadioBrowser results
    page navigation (text interface) and relevant web interface buttons
  • Remote Control Server: adding REC button to web interface
  • Remote Control Server: the output of the /info command will report
    headless operation and if RadioBrowser is active, search term used
    and page number
  • introducing the Messaging System; most messages displayed to the user
    have been transfered to messages_system.py
  • moving Pyradio cache contents to ~/.cache (not on Windows)
  • moving the recordings directory to home folder and renaming it to
    "pyradio-recordings".
  • adding recording_dir config parameter and window to customize it
  • titles log files will be saved in the recordings directory
  • if netifaces module is not installed, headless operation will be aborted
  • fixing #229: Crash when $HOME/.mplayer directory does not exist
  • fixing escaped chars in window title and litles log file
  • adding a Windows python 3.12 workaround to the "curses silently exits" bug
  • adding two Serbian stations in station.csv - PR #227
  • updating documentation

Packagers notice

Please do read the updated Packager's Info!

Please refer to: https://github.com/coderholic/pyradio/blob/master/packaging.md

Changed files

 Changelog                        |   47 +-
 Makefile                         |   45 -
 README.md                        |   56 +-
 devel/build_install_pyradio      |   34 +-
 devel/fix_pyradio_desktop_file   |   22 +-
 devel/pre-commit                 |   43 +-
 devel/reg.py                     |    2 +-
 docs/build.html                  |    9 +-
 docs/build.md                    |    8 +-
 docs/desktop-notification.html   |   10 +-
 docs/desktop-notification.md     |    8 +-
 docs/headless.html               |   44 +-
 docs/headless.md                 |   64 +-
 docs/index.html                  |  149 +-
 docs/index.md                    |  119 +-
 docs/linux-pipx.html             |    6 +-
 docs/linux-pipx.md               |    4 +-
 docs/linux.html                  |    2 +-
 docs/macos.html                  |   10 +-
 docs/macos.md                    |    8 +-
 docs/packaging.html              |   24 +-
 docs/packaging.md                |   38 +
 docs/pip-error.html              |    2 +-
 docs/pyradio.1                   |   17 +-
 docs/pyradio_rb.1                |    2 +-
 docs/pyradio_rec.1               |   23 +-
 docs/pyradio_server.1            |   71 +-
 docs/radio-browser.html          |   10 +-
 docs/radio-browser.md            |    2 +
 docs/rec-dir.html                |   91 ++
 docs/rec-dir.md                  |   41 +
 docs/recording.html              |   20 +-
 docs/recording.md                |   19 +-
 docs/server.html                 |   93 +-
 docs/server.md                   |   99 +-
 docs/themes.html                 |    2 +-
 docs/windows-mplayer.html        |    2 +-
 docs/windows-mpv.html            |    2 +-
 docs/windows.html                |    2 +-
 pyproject.toml                   |    2 +-
 pyradio/__init__.py              |    4 +-
 pyradio/browser.py               |  197 ++-
 pyradio/cjkwrap.py               |    7 +-
 pyradio/common.py                |   67 +-
 pyradio/config                   |  143 +-
 pyradio/config.py                |  791 +++++-----
 pyradio/config_window.py         |   23 +-
 pyradio/edit.py                  |  537 ++++++-
 pyradio/html_help.py             |    8 +-
 pyradio/index.md                 |   10 +-
 pyradio/install.py               |   53 +-
 pyradio/log.py                   |   11 +-
 pyradio/main.py                  |  522 +++----
 pyradio/messages_system.py       | 1906 +++++++++++++++++++++++
 pyradio/mkvtoolnix.py            |  102 +-
 pyradio/player.py                |  157 +-
 pyradio/radio.py                 | 3143 ++++++++++++++------------------------
 pyradio/server.py                |  537 +++++--
 pyradio/simple_curses_widgets.py |   26 +-
 pyradio/stations.csv             |    2 +
 pyradio/themes.py                |    2 -
 pyradio/win.py                   |    4 +-
 pyradio/window_stack.py          |  221 +--
 pyradio/xdg.py                   |  644 ++++++++
 64 files changed, 6712 insertions(+), 3657 deletions(-)