91
submitted 10 months ago by christos@lemmy.world to c/linux@lemmy.ml

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 #tag 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.


top 6 comments
sorted by: hot top controversial new old
[-] vluz@kbin.social 7 points 10 months ago

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

[-] christos@lemmy.world 4 points 10 months ago

Thanks, any feedback would be welcome!

[-] barbecue_sprinkler@lemmy.world 3 points 10 months ago

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

[-] christos@lemmy.world 2 points 10 months ago

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.

[-] Hominine@lemmy.world 2 points 9 months ago

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

[-] christos@lemmy.world 1 points 9 months ago

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

this post was submitted on 17 Nov 2023
91 points (100.0% liked)

Linux

47366 readers
2109 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS