User Tools

Site Tools


install_curseradio-improved

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_curseradio-improved [2024/10/19 19:17] steveinstall_curseradio-improved [2024/10/25 18:30] (current) steve
Line 15: Line 15:
 Next, install Curseradio using the following commands: Next, install Curseradio using the following commands:
 <code bash> <code bash>
-sudo apt-get install python3-pip python3.11-venv +sudo apt-get install python3-pip python3-venv 
-python3 -m venv .venv +python3 -m venv ~/.venv 
-source .venv/bin/activate+source ~/.venv/bin/activate
 pip3 install curseradio-improved lxml requests xdg pyxdg pip-review pip3 install curseradio-improved lxml requests xdg pyxdg pip-review
 pip-review  --local --auto pip-review  --local --auto
 </code> </code>
-Once installed, simply type curseradio-improved in the terminal to launch the program. Use the arrow keys to navigate the list of available radio stations and press 'Enter' to start streaming the selected station. 
- 
 Curseradio provides a unique and convenient way to explore and listen to internet radio stations from around the world within the Linux terminal. Its simple interface, combined with the powerful MPV media player, makes it a popular choice for users seeking a lightweight, text-based radio player. Compatible with a wide range of Linux distributions, Curseradio is an excellent addition to any Linux user’s terminal toolkit. Curseradio provides a unique and convenient way to explore and listen to internet radio stations from around the world within the Linux terminal. Its simple interface, combined with the powerful MPV media player, makes it a popular choice for users seeking a lightweight, text-based radio player. Compatible with a wide range of Linux distributions, Curseradio is an excellent addition to any Linux user’s terminal toolkit.
  
-This application uses graphical characters to display some attributes, these can be modified by editing the file found using this command+A handy addition to this is, after install; 
 +Update things every now and again with;
 <code bash> <code bash>
-echo "$(pip3 show curseradio-improved | grep -i 'location' | awk '{ print $2 }')/curseradio_improved/configs.json"+source ~/.venv/bin/activate 
 +pip-review  --local --auto
 </code> </code>
-If you replace the command portion in that file with something that captures outputyou can get the raw URLs for the audio streams that the python spits out!+When you're done using the virtual environmenttype <code>deactivate</code> and press enter to exit that sub-shell.
  
-A handy addition to this isafter install; +Finally, if you want a helper script to start this applicationput this in ~/bin/Radio and make it executable with ''%%chmod a+x ~/bin/Radio%%'' 
-<code bash> +<code bash Radio
-cd ~/.local/bin +#!/usr/bin/bash 
-ln -s curseradio-improved radio+# For reference on the installation, see; 
 +# https://wiki.cyli.org/doku.php?id=install_curseradio-improved 
 +source ~/.venv/bin/activate 
 +curseradio-improved
 </code> </code>
-Then you can launch it with just radio.+Then, in a terminal, just run 'Radio'. 
 +\\
 The default key commands are; The default key commands are;
   * 'Up arrow' or 'k' moves up   * 'Up arrow' or 'k' moves up
Line 46: Line 50:
   * 's' stops playing   * 's' stops playing
   * 'q' quits   * 'q' quits
-The 'Console Video Lan Client', cvlc can almost certainly be used in place of mpv here.+
 <code text> <code text>
 ┌────────────────────────────── Curseradio - Improved ──────────────────────────────┐ ┌────────────────────────────── Curseradio - Improved ──────────────────────────────┐
Line 75: Line 79:
 └───────────────────────────────────────────────────────────────────────────────────┘ └───────────────────────────────────────────────────────────────────────────────────┘
 </code> </code>
-Update things every now and again with; + 
-<code bash>pip-review  --local --auto</code> +This application uses graphical characters to display some attributesthese can be modified by editing the file found using this command;  
-Finally, if you want a helper script to start this applicationput this in ~/bin/Radio +<code bash>
-<code> +
-#!/usr/bin/bash +
-# For reference on the installation, see; +
-# https://wiki.cyli.org/doku.php?id=install_curseradio-improved+
 source ~/.venv/bin/activate source ~/.venv/bin/activate
-curseradio-improved+echo "$(pip3 show curseradio-improved | grep -i 'location' | awk '{ print $2 }')/curseradio_improved/configs.json"
 </code> </code>
-Then, in a terminaljust run 'Radio'.+ 
 +If you replace the command portion in that file with something that captures outputyou can get the raw URLs for the audio streams that the python spits out! 
 +The 'Console Video Lan Client', cvlc can be used in place of mpv here. 
 + 
 +{{ :curseradio-improved.png?nolink |}}
install_curseradio-improved.1729365434.txt.gz · Last modified: by steve