Pyradion, internet radio TUI client, with recording functionality, written in Python

https://gitlab.com/christosangel/pyradion

Through the menus, the user can :

  • Select directly a station from the Favorites list (which is configurable).
  • Select a random station out of this list of Favorite stations.
  • Select a tag to pick a station from.
  • Select to pick a station from All Stations.
  • Select a random station out of this list of stations.
  • ❌ Quit pyradion.

Recording

Recording a radio stream in pyradion can be done easily, just by hitting r or R.

record.png

The user will be notified through the status line of the recording taking place, and of the output file name.

Editing the pyradion.config file, the user will be able to define output audio file directory.

If the title is available by the stream, the file will take its name by it.

If title is Not Available, the file will take a date/time for name.

Output File Format

In order for recording to work for mpv, output file format must be the same with stream format.

Therefore stream format is recognised, and passed to the output file (e.g. mp3, ogg, aac).


This project shares more or less the same logic with a previous project in Bash:

https://gitlab.com/christosangel/radion

although with this Python script some more features are available.


Hominine,
@Hominine@lemmy.world avatar

Neat! Going to give this a go on my lunch break. Thanks!

christos,
@christos@lemmy.world avatar

Hey let me know how it goes, any feedback is welcome!

barbecue_sprinkler,

This is so sweet! And the amount of radio stations is astonishing. Thanks for sharing and your work.

christos,
@christos@lemmy.world avatar

Thank you, I am glad you like it. I have been trying to improve it, adding functionalities, improving the selection mechanism with cursor and scrolling etc.

vluz,
vluz avatar

Lovely! I'll go read the code as soon as I have some coffee.

christos,
@christos@lemmy.world avatar

Thanks, any feedback would be welcome!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • khanakhh
  • ethstaker
  • JUstTest
  • ngwrru68w68
  • cisconetworking
  • modclub
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • normalnudes
  • Leos
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines